Taquito v19.2.1-beta.1
Pre-release
Pre-release
dsawali
released this
30 Apr 23:21
·
13 commits
to beacon-4.2.2
since this release
Summary
New Features
- Updated Beacon version to v4.2.2-beta.3
⚠️ 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