Nahmii 2.0 greeting contract example
This is a very simple greeting smart contract. A message can be set on deployment and changed by anyone afterwards.
How to run the example project
Open a command line terminal.
Clone the repository.
cdto the cloned project folder.Fetch and switch to the 'example' branch.
cdto the example folder of your choice eg.cd greeter-example.Run
yarnoryarn install.Update the mnemonic in the
hardhat.config.jsfile with the one that contains wETH, account 1.To test the code, run
npx hardhat --network nahmii test.To interact with the smart contract on the Nahmii 2 L2 network run
npx hardhat --network nahmii console.To deploy the smart contract on the Nahmii 2 L2 network run
npx hardhat --network nahmii run scripts/deploy.js.
Last updated
Was this helpful?