This commit is contained in:
Georges KABBOUCHI 2021-08-29 01:19:14 +03:00
parent 338b1fff5c
commit e562a91b2e
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@kabbouchi/vue-web3", "name": "@kabbouchi/vue-web3",
"version": "0.2.7", "version": "0.2.8",
"description": "Vue web3 composition api", "description": "Vue web3 composition api",
"license": "MIT", "license": "MIT",
"main": "dist/cjs/index.js", "main": "dist/cjs/index.js",

View File

@ -85,7 +85,10 @@ export const useWeb3 = () => {
update.chainId === undefined update.chainId === undefined
? undefined ? undefined
: normalizeChainId(update.chainId) : normalizeChainId(update.chainId)
account.value = update.account account.value =
typeof update.account === 'string'
? normalizeAccount(update.account)
: update.account
} }
const handleError = (e: Error): void => { const handleError = (e: Error): void => {