Skip to content

Commit

Permalink
test: verify packages
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Jun 3, 2024
1 parent 689a907 commit d81d6d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/apps/layerzero/IncentivizedLayerZeroEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ contract IncentivizedLayerZeroEscrow is IncentivizedMessageEscrow, ExecutorZero
// Get the source chain.
uint32 srcEid = _packet.srcEid();

bytes32 _headerHash = keccak256(_packet);
bytes32 _headerHash = keccak256(_packet.header());
bytes32 _payloadHash = _packet.payloadHash();

// The ULN may not be constant since it depends on the srcEid. :(
Expand Down
5 changes: 1 addition & 4 deletions test/layerzero/TestLZSendPacket.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ pragma solidity ^0.8.22;

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

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


uint64 nonce = 1;
uint32 dstEid = remoteEid;
bytes32 receiver = bytes32(uint256(uint160(target)));
Expand All @@ -42,7 +39,7 @@ contract TestLZSendPacket is LZCommon {
nonce: nonce,
srcEid: localEid,
sender: sender,
dstEid: remoteEid,
dstEid: dstEid,
receiver: receiver,
guid: guid,
message: message
Expand Down

0 comments on commit d81d6d8

Please sign in to comment.