Skip to content

Commit

Permalink
feat: save code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisic committed Jan 23, 2024
1 parent 7c61089 commit 895c098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/projects/projectsDeploymentOrchestration/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ const goDeploy = ()=>{
}
const deployManyContract = async () => {
const walletAccount = window.localStorage.getItem("walletAccount");
// 先获取当前小狐狸的chainId,与选中的进行对比
const nowChainId = await web3.eth.getChainId();
// 点击部署之前需要判断改动的表单的数据是否保存
Expand All @@ -618,6 +619,8 @@ const deployManyContract = async () => {
return false;
} else if(chainId.value != `0x${nowChainId.toString(16)}`) {
changeNetwork()
} else if (walletAccount === undefined || walletAccount === null) {
connectWallet();
} else {
// 获取可编排的合约
await getProjectsContractName();
Expand Down

0 comments on commit 895c098

Please sign in to comment.