diff --git a/package.json b/package.json index 9efa605..8a52a2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kabbouchi/vue-web3", - "version": "0.2.7", + "version": "0.2.8", "description": "Vue web3 composition api", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/index.ts b/src/index.ts index 533a44c..269e87e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,10 @@ export const useWeb3 = () => { update.chainId === undefined ? undefined : normalizeChainId(update.chainId) - account.value = update.account + account.value = + typeof update.account === 'string' + ? normalizeAccount(update.account) + : update.account } const handleError = (e: Error): void => {