Skip to content

Commit

Permalink
change wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
leary423 committed Jan 23, 2024
1 parent b23cd93 commit 7c61089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/Wallets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ const onClickConnect = async () => {
const network = walletStates[0].chains[0].id;
const address = walletStates[0].accounts[0].address;
console.log('~~~~~~~~', provider, 1111, network, 2222, address)
contractApi.initContractApi(provider, network, address);
if (Object.keys(provider).length > 0) {
contractApi.initContractApi(provider, network, address);
}
// 进入页面即要求连接钱包
// const walletStatesOrNull = await autoConnectSavedWallet()
// if (walletStatesOrNull == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ const closeDeployContractsNumberModal = ()=>{
// 执行部署引擎
const goDeploy = ()=>{
// deployArrange.value 引擎需要用到的大JSON字符串
closeDeployContractsNumberModal();
// 引擎执行完成后进行跳转
router.push(`/projects/projectsDeploymentDetail?id=${contractInfo.value.id}&version=${baseInfo.value.selectedVersion}&executeId=${executeId.value}`)
}
Expand Down

0 comments on commit 7c61089

Please sign in to comment.