Skip to content

Taquito v19.2.1-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@dsawali dsawali released this 10 May 19:16
· 3 commits to beacon-4.2.2 since this release

Summary

New Features

  • Updated Beacon version to v4.2.2-beta.4, this Beacon version includes Paris protocol type definitions

⚠️ Breaking Changes ⚠️

Beacon Migration

As of Beacon version 4.2.0, Beacon have migrated from using dAppClient.getActiveAccount() to using an event subscription method BeaconEvent.ACTIVE_ACCOUNT_SET for handling active account changes.

IF YOU ARE STILL USING THE eventHandlers PROPERTY WHEN INITIALIZING A DAPP CLIENT, PLEASE UPDATE YOUR CODE.

const wallet = new BeaconWallet(options);
await wallet.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, (data) => {
    // your logic to update your state
    console.log(data.address);
    console.log(data.network.type);
});
await wallet.requestPermissions();

For a more detailed migration guide, please refer to this document