Skip to content

Commit

Permalink
add erroneously excluded check back in
Browse files Browse the repository at this point in the history
  • Loading branch information
nonergodic committed Dec 19, 2024
1 parent 6950cf2 commit d2a8ae3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/testing/WormholeRelayer/MockOffchainRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,22 @@ contract MockOffchainRelayer {
}

for (uint16 i = 0; i < vaas.length; ++i) {
uint16 chain = vaas[i].emitterChainId;
address emitter = vaas[i].emitterAddress.fromUniversalAddress();
if (debugLogging)
console.log(
"Found VAA from chain %s emitted from %s",
vaas[i].emitterChainId,
vaas[i].emitterAddress.fromUniversalAddress()
console.log("Found VAA from chain %s emitted from %s", chain, emitter);

if (emitter == address(wormholeRelayerContracts[chain])) {
if (debugLogging)
console.log("Relaying VAA to chain %s", chain);

genericRelay(
vaas[i],
vaas,
cctpSignedMsgs,
deliveryOverrides
);

genericRelay(
vaas[i],
vaas,
cctpSignedMsgs,
deliveryOverrides
);
}
}
}

Expand Down

0 comments on commit d2a8ae3

Please sign in to comment.