Answers for "hardhat console"

0

hardhat console log

// import in your .sol file
import "hardhat/console.sol";
// then to log use: console.log("log 1")
Posted by: Guest on April-06-2022
0

hardhat console

const MyContract = await ethers.getContractFactory("MyContract");
const contract = await MyContract.attach(
  "0x..." // The deployed contract address
);

// Now you can call functions of the contract
await contract.doTheThing();

For More Help contact (Telegram) :https://t.me/dappmaster (Mail):[email protected]
Posted by: Guest on May-08-2022

Browse Popular Code Answers by Language