Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add erroneously excluded check back in #75

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading