Skip to content

Commit

Permalink
feat: save code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisic committed Nov 24, 2023
1 parent 33e9b47 commit 9f51611
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Wallets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ const onClickConnect = async () => {
for(let account of walletStates[0].accounts){
saveWallet(account.address).then(() => {})
}
if (connectedWallet.value) {
console.info("start init 11111")
const provider = connectedWallet.value.provider;
const network = connectedWallet.value.chains[0].id;
const address = connectedWallet.value.accounts[0].address;
console.log('~~~~~~~~',provider,1111,network,2222,address)
contractApi.initContractApi(provider, network, address);
}
}
}
Expand Down

0 comments on commit 9f51611

Please sign in to comment.