Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix packet delivery in mock test suite by adjusting TX expiry. #5

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

Zodomo
Copy link
Contributor

@Zodomo Zodomo commented Dec 22, 2023

The packet expiry timestamp enforced by the DVN was set to 1000. Setting it to block.timestamp + 1000 fixed my issues with using TestHelper locally in an integrating project. Many thanks to @carmenjiawenc from the L0 team for helping us track down this issue.

The packet expiry timestamp enforced by the DVN was set to 1000. Setting it to block.timestamp + 1000 fixed my issues with using TestHelper locally in an integrating project. Many thanks to Carmen from the L0 team for helping us track down this issue.
@carmenjiawenc carmenjiawenc merged commit c321320 into LayerZero-Labs:main Dec 22, 2023
1 check passed
@ghost
Copy link

ghost commented Dec 23, 2023

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

import { IOApp, ILayerZeroEndpointV2 } from "./interfaces/IOApp.sol";
import { OAppSender } from "./OAppSender.sol";
// @dev import the origin so its exposed to OApp implementers
import { OAppReceiver, Origin } from "./OAppReceiver.sol";

abstract contract OApp is IOApp, OAppSender, OAppReceiver {
constructor(address _endpoint, address _owner) {
_transferOwnership(_owner);
endpoint = ILayerZeroEndpointV2(_endpoint);
}

function oAppVersion() public pure virtual returns (uint64 senderVersion, uint64 receiverVersion) {
    senderVersion = SENDER_VERSION;
    receiverVersion = RECEIVER_VERSION;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants