jumper.exchange icon indicating copy to clipboard operation
jumper.exchange copied to clipboard

fix: added cyberconnect hooks + fixed updated signer closure

Open Abhikumar98 opened this issue 1 year ago • 5 comments

Bug

The switchChain wasn't returning the updated signer for smart contract wallets, which didn't rely on the window's listeners which was leading to a stale state being used resulting in a wrong chain being passed in the SDK.

Fix

From the promise of switchChain we are returning the updated Signer and returning it synchronously, and leading to usage of updated/switch chain's signer for correct values.

Abhikumar98 avatar Oct 27 '23 13:10 Abhikumar98