Foundry
Install OraichainEVM by following the full instructions provided in the documentation.
Create Foundry Project
Create a directory for your contracts and initialize it:
For now, let’s check what the default template looks like:
Open src/Counter.sol
with the following contract:
Compile the contract:
Anvil
Anvil is a fast local Ethereum development node.
Anvil is part of the Foundry suite and is installed alongside forge
, cast
and chisel
. If you haven’t installed Foundry yet, see Foundry installation.
To fork against a live OraichainEVM network run:
Deploy Contract
Migrate your contract in the foundry terminal:
You should see deployment logs in the OraichainEVM terminal for each transaction.
Run Foundry Tests
Run the tests using the OraichainEVM node:
This will confirm the contract's functionality.
Run Foundry Script
To execute a script on OraichainEVM, run:
earched Pre-requisite reading installation run a node search.
For suggestions, contribute on GitHub!
Last updated
Was this helpful?