Smart Contract Development
Developing and testing the Nomial smart contracts
Last updated
Developing and testing the Nomial smart contracts
Last updated
To work with Nomial V1 contracts, ensure you have the following dependencies installed:
Nomial V1 follows a modular structure:
To compile the contracts:
If compilation fails, ensure all dependencies are installed and run:
Nomial V1 uses Foundry for testing. To run all tests:
For verbose output:
Tests are located in the test/
directory and follow Foundry's testing conventions. To write a new test:
Create a new file in test/
Import Test
from forge-std
Write test functions prefixed with test
Example:
Out-of-gas errors? Increase gas limits in foundry.toml
.
Missing dependencies? Run forge install
or yarn install
.
Tests failing? Run forge test -vvv
for detailed logs.