From ce7ad75c8ba6db9a4a022acda85d09273325636d Mon Sep 17 00:00:00 2001 From: nonergodic Date: Mon, 29 Jan 2024 20:41:26 -0800 Subject: [PATCH] fix WormholeOverride.sign() by using provided params --- src/testing/WormholeOverride.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/WormholeOverride.sol b/src/testing/WormholeOverride.sol index f20bac3..99cdc8a 100644 --- a/src/testing/WormholeOverride.sol +++ b/src/testing/WormholeOverride.sol @@ -126,9 +126,9 @@ library WormholeOverride { vaa.payload = pm.payload; bytes memory encodedBody = abi.encodePacked( - uint32(block.timestamp), + pm.timestamp, pm.nonce, - wormhole.chainId(), + pm.emitterChainId, pm.emitterAddress, pm.sequence, pm.consistencyLevel,