From de01c91e30fa5ab642c4bc5efa4815471162953f Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Thu, 29 Feb 2024 19:00:48 +0000 Subject: [PATCH] chore: static audit correction --- scripts/audit_chains/audit_contracts_setup.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/audit_chains/audit_contracts_setup.js b/scripts/audit_chains/audit_contracts_setup.js index 5a364e2..7428c75 100644 --- a/scripts/audit_chains/audit_contracts_setup.js +++ b/scripts/audit_chains/audit_contracts_setup.js @@ -379,16 +379,16 @@ async function checkWormholeMessenger(chainId, provider, globalsInstance, config log += ", address: " + wormholeMessenger.address; // Check the source governor - const foreignGovernor = await wormholeMessenger.sourceGovernor(); - customExpect(foreignGovernor, globalsInstance["timelockAddress"], log + ", function: sourceGovernor()"); + const sourceGovernor = await wormholeMessenger.sourceGovernor(); + customExpect(sourceGovernor, globalsInstance["timelockAddress"], log + ", function: sourceGovernor()"); // Check L2WormholeRelayerAddress - const proxyHome = await wormholeMessenger.wormholeRelayer(); - customExpect(proxyHome, globalsInstance["L2WormholeRelayerAddress"], log + ", function: wormholeRelayer()"); + const wormholeRelayer = await wormholeMessenger.wormholeRelayer(); + customExpect(wormholeRelayer, globalsInstance["L2WormholeRelayerAddress"], log + ", function: wormholeRelayer()"); // Check source governor chain Id - const proxyHome = await wormholeMessenger.sourceGovernorChainId(); - customExpect(proxyHome, globalsInstance["sourceGovernorChainId"], log + ", function: sourceGovernorChainId()"); + const sourceGovernorChainId = await wormholeMessenger.sourceGovernorChainId(); + customExpect(sourceGovernorChainId, globalsInstance["sourceGovernorChainId"], log + ", function: sourceGovernorChainId()"); } async function main() {