Hello-world
Last updated
Was this helpful?
Last updated
Was this helpful?
Building on Nahmii is smooth and fluid, just like on Ethereum with tools like Remix and Hardhat. Other tools like Truffle, Replit, etc are in the integration phase.
This repository contains a simple ERC-20 smart contract with a public mint function and instructions on how to deploy to Nahmii 2.0 network. The files for this example can be found .
Requirement
Two L2 wallets loaded with sufficient amount of wETH, needed for the transaction.
, for the NodeJS version
Here's a simple greeting contract, the files can be found . Note: A message can be deployed and also be changed by anyone afterwards.
Requirements
A L2 wallet with wETH
NodeJS version remains the same.
How to run the project
Open a command line terminal.
Run yarn
.
Update the mnemonic in the hardhat.config.js
with one that contains wETH in account 1.
Connect Hardhat to Nahmii in order to test the code, run npx hardhat --network nahmii test
.
To interact with the smart contracts on Nahmii, run npx hardhat --network nahmii console
.
To deploy the smart contract on the Nahmii, run npx hardhat run scripts/deploy.js --network nahmii
.