Skip to content

Commit d81d6d8

Browse files
committed
test: verify packages
1 parent 689a907 commit d81d6d8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/apps/layerzero/IncentivizedLayerZeroEscrow.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ contract IncentivizedLayerZeroEscrow is IncentivizedMessageEscrow, ExecutorZero
197197
// Get the source chain.
198198
uint32 srcEid = _packet.srcEid();
199199

200-
bytes32 _headerHash = keccak256(_packet);
200+
bytes32 _headerHash = keccak256(_packet.header());
201201
bytes32 _payloadHash = _packet.payloadHash();
202202

203203
// The ULN may not be constant since it depends on the srcEid. :(

test/layerzero/TestLZSendPacket.t.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ pragma solidity ^0.8.22;
33

44
import { LZCommon } from "./LZCommon.t.sol";
55

6-
import { ExecutorConfig } from "LayerZero-v2/messagelib/contracts/SendLibBase.sol";
7-
import { Origin } from "LayerZero-v2/protocol/contracts/interfaces/ILayerZeroEndpointV2.sol";
86
import { Packet } from "LayerZero-v2/protocol/contracts/interfaces/ISendLib.sol";
97
import { PacketV1Codec } from "LayerZero-v2/protocol/contracts/messagelib/libs/PacketV1Codec.sol";
108
import { GUID } from "LayerZero-v2/protocol/contracts/libs/GUID.sol";
@@ -30,7 +28,6 @@ contract TestLZSendPacket is LZCommon {
3028
function test_send_packet(address target, bytes calldata message, uint64 deadline) external {
3129
_set_init_config();
3230

33-
3431
uint64 nonce = 1;
3532
uint32 dstEid = remoteEid;
3633
bytes32 receiver = bytes32(uint256(uint160(target)));
@@ -42,7 +39,7 @@ contract TestLZSendPacket is LZCommon {
4239
nonce: nonce,
4340
srcEid: localEid,
4441
sender: sender,
45-
dstEid: remoteEid,
42+
dstEid: dstEid,
4643
receiver: receiver,
4744
guid: guid,
4845
message: message

0 commit comments

Comments
 (0)