This template is built on the base of the original repository to test some Solidity contracts on a Substrate network with Ethereum compatible layers.
To test contracts using the HardHat tools the following have been introduced into the original code:
- five account with some ETH with public keys derived from the default HardHat seed phrase in the file: "./node/src/chain_spec.rs"
MILLISECS_PER_BLOCK = 1000
in the file: "./runtime/src/lib.rs"ExistentialDeposit=0
in the file: "./runtime/src/lib.rs"
- Run the following command (from the repository root dir) to build:
cargo build --release
. It could take 10 or more minutes depending on your machine characteristics. - Run the following command (from the repository root dir) to up the local Substrate test network with temporary storage:
./target/release/frontier-template-node --dev --tmp
- Configure and run your test on the executing network.