diff --git a/package.json b/package.json index fa49213..2c0c441 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bgd-labs/frontend-web3-utils", "description": "Frontend utilities common to multiple Web3 projects", - "version": "0.4.5", + "version": "0.4.51", "author": "BGD labs", "license": "MIT", "private": false, diff --git a/src/web3/store/walletSlice.ts b/src/web3/store/walletSlice.ts index f0976b6..ba17b01 100644 --- a/src/web3/store/walletSlice.ts +++ b/src/web3/store/walletSlice.ts @@ -124,6 +124,9 @@ export function createWalletSlice({ get().setClient(wallet.chain.id, client); walletConnected(activeWallet); set({ isActiveWalletSetting: false }); + if (isContractAddress) { + get().updateEthAdapter(true); + } } } }