Taquito v19.2.1
Summary
New Features
- Updated Beacon version to v4.2.2, 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
Internals
- Updated
@taquito/beacon-wallet
to usesubscribeToEvent()
instead ofgetActiveAccount()
#2958