Skip to content

Commit

Permalink
chore: fast forward finalization time before relay
Browse files Browse the repository at this point in the history
  • Loading branch information
viraj124 committed Dec 30, 2024
1 parent 22dafb8 commit 092e1db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/solidity-contracts/integration-tests/transfer_eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ describe('Transferring ETH', async function () {
// construct relay message proof data
const relayMessageParams = createRelayMessageParams(withdrawMessageProof);

const TIME_TO_FINALIZE = await env.eth.fuelChainState.TIME_TO_FINALIZE();

// fast forward to the block finalization time
await env.eth.provider.send('evm_increaseTime', [
Number(TIME_TO_FINALIZE) * 100,
]);
await env.eth.provider.send('evm_mine', []); // Mine a new block

// relay message
await env.eth.fuelMessagePortal.relayMessage(
relayMessageParams.message,
Expand Down

0 comments on commit 092e1db

Please sign in to comment.