jumper.exchange
jumper.exchange copied to clipboard
fix: added cyberconnect hooks + fixed updated signer closure
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.