Skip to content

Commit

Permalink
chore: static audit correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed Feb 29, 2024
1 parent f15e202 commit de01c91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/audit_chains/audit_contracts_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit de01c91

Please sign in to comment.