This repository is used as a node template to test some Solidity contracts on a Substrate network with Ethereum compatible layers. It is built on the base of the original Frontier repository.
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: "./template/node/src/chain_spec.rs"
MILLISECS_PER_BLOCK = 1000
in the file: "./template/runtime/src/lib.rs"ExistentialDeposit=0
in the file: "./template/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.