Search…
PingPong.sol
Demonstrate an onchain call to estimateFees() and a "recursive" call within lzReceive()
This example contract demonstrates:
  • estimateFees(): how to get the message fee on chain
  • call send() within lzReceive()
  • using a contract to pay the message fee (as opposed to the msg.sender)
Warning: This contract will continuously send calls between two chains until one of them runs out of gas!
solidity-examples/PingPong.sol at main · LayerZero-Labs/solidity-examples
GitHub
PingPong.sol
Copy link