Skip to content

Commit

Permalink
feat: get address from deploy script instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Jun 15, 2023
1 parent 062c360 commit 351a6f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const main = async function (..._args: Arg[]) {
return
}

await deployContractConstant(
const address = await deployContractConstant(
wallet,
contractJson,
<string>salt,
Expand All @@ -52,8 +52,11 @@ const main = async function (..._args: Arg[]) {
(<string>contractJsonPath).split('.json')[0]
} at ${contract.address}`
)
return contract.address
})
.catch(console.error)

return address
}

const args = process.argv.slice(2)
Expand Down

0 comments on commit 351a6f9

Please sign in to comment.