Skip to content

Commit

Permalink
chore: correcting wormhole testing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed Feb 28, 2024
1 parent cb8c79a commit 55f4548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ async function main() {
const balanceETHBefore = await celoAlfajoresProvider.getBalance(EOAceloAlfajores.address);

// Build the final payload to be passed from the imaginary Timelock
const sendPayloadSelector = "0x8fecdd02";
const sendPayloadSelector = "0x4b5ca6f4";
const timelockPayload = await wormholeRelayer.interface.encodeFunctionData(sendPayloadSelector, [targetChain,
wormholeMessengerAddress, data, 0, minGasLimit]);
wormholeMessengerAddress, data, 0, minGasLimit, targetChain, wormholeMessengerAddress]);

// Send the message to celoAlfajores receiver
tx = await mockTimelock.connect(EOAsepolia).execute(timelockPayload, { value: transferCost.nativePriceQuote });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ async function main() {
const balanceETHBefore = await polygonMumbaiProvider.getBalance(EOApolygonMumbai.address);

// Build the final payload to be passed from the imaginary Timelock
const sendPayloadSelector = "0x8fecdd02";
const sendPayloadSelector = "0x4b5ca6f4";
const timelockPayload = await wormholeRelayer.interface.encodeFunctionData(sendPayloadSelector, [targetChain,
wormholeMessengerAddress, data, 0, minGasLimit]);
wormholeMessengerAddress, data, 0, minGasLimit, targetChain, wormholeMessengerAddress]);

// Send the message to polygonMumbai receiver
tx = await mockTimelock.connect(EOAsepolia).execute(timelockPayload, { value: transferCost.nativePriceQuote });
Expand Down

0 comments on commit 55f4548

Please sign in to comment.