LZEndpointMock.sol
A mock LayerZero endpoint contract for local testing.
To enable testing locally we provide a mock that emulates a real endpoint. It has a
send()
method just like a real endpoint on main/test networks and it forwards the payload straight to the lzReceive()
function (so you dont need a production oracle or relayer -- allowing you to test the contract logic easily). This contract helps the LayerZero team with our own testing!
Last modified 10mo ago