Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

DanL0/integrations-foundry-tooling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

cp .env.example .env
yarn
forge build
  1. Find the source transaction hash of the message that has failed on LayerZero Scan
  2. Populate the .env file with the following:
    • SOURCE_CHAIN_TX_HASH=<your_source_tx_hash>
    • MAINNET=true or MAINNET=false (for the scan API)
    • DESTINATION_CHAIN_RPC_URL=<your_rpc_url>
    • CAST_ACCOUNT=<your_cast_account> (use cast wallet import -i <ACCOUNT_NAME> to import a private key into cast)
      • You can optionally use the RPC URL shortcuts in foundry.toml, for example bnb
  3. Run make simulate to simulate the workflow, this assumes you have an account in cast, alternatively you can edit the Makefile to use --private-key <PRIVATE_KEY> instead. Run make broadcast to broadcast the transaction.

If you get an error from SimulateReceive script eg. script failed: custom error 7182306f you can do:

cast 4byte 7182306f

Example result:

LZ_PayloadHashNotFound(bytes32,bytes32)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •