From 42ec6eeb190529add72bc93fcf92739339efc8f3 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Tue, 21 May 2024 18:27:02 +0300 Subject: [PATCH] Check refund wallet --- script/deploy/healthCheck.mts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/script/deploy/healthCheck.mts b/script/deploy/healthCheck.mts index 156767927..8636e6a96 100644 --- a/script/deploy/healthCheck.mts +++ b/script/deploy/healthCheck.mts @@ -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() } },