Skip to content

Commit

Permalink
feat: add controller role to exchangeRouter (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
zarboq authored Jun 19, 2024
1 parent ba7b240 commit 2bf7371
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/app/deployApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ async function deploy() {
shortString.encodeShortString("CONTROLLER")
]
)
const roleCall11 = roleStoreContract.populate("grant_role",
[
deployExchangeRouterResponse.deploy.contract_address,
shortString.encodeShortString("CONTROLLER")
]
)
const grant_role_tx2 = await roleStoreContract.grant_role(roleCall2.calldata)
await provider.waitForTransaction(grant_role_tx2.transaction_hash)
const grant_role_tx3 = await roleStoreContract.grant_role(roleCall3.calldata)
Expand All @@ -394,6 +400,8 @@ async function deploy() {
await provider.waitForTransaction(grant_role_tx9.transaction_hash)
const grant_role_tx10 = await roleStoreContract.grant_role(roleCall10.calldata)
await provider.waitForTransaction(grant_role_tx10.transaction_hash)
const grant_role_tx11 = await roleStoreContract.grant_role(roleCall11.calldata)
await provider.waitForTransaction(grant_role_tx11.transaction_hash)

console.log("Roles granted.")
}
Expand Down

0 comments on commit 2bf7371

Please sign in to comment.