Skip to content

Commit

Permalink
Check refund wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed May 21, 2024
1 parent 289b154 commit 42ec6ee
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions script/deploy/healthCheck.mts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,30 @@ const main = defineCommand({
)
}
}

// Refund wallet
const refundSigs = globalConfig.approvedSigsForRefundWallet as {
sig: Hex
name: string
}[]

for (let sig of refundSigs) {
if (
!(await accessManager.read.addressCanExecuteMethod([
sig.sig,
refundWallet,
]))
) {
logError(
`Refund wallet ${refundWallet} cannot execute ${sig.name} (${sig.sig})`
)
} else {
consola.success(
`Refund wallet ${refundWallet} can execute ${sig.name} (${sig.sig})`
)
}
}

finish()
}
},
Expand Down

0 comments on commit 42ec6ee

Please sign in to comment.