Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm init -y
2. Install Hardhat and necessary dependencies:

```bash
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox dotenv
```

3. Create a new Hardhat project:
Expand Down Expand Up @@ -122,7 +122,7 @@ describe("InkContract", function () {
it("Should return the correct greeting", async function () {
const InkContract = await ethers.getContractFactory("InkContract");
const contract = await InkContract.deploy();
await contract.deployed();
await contract.waitForDeployment();

expect(await contract.greeting()).to.equal("Hello, Ink!");
});
Expand All @@ -144,9 +144,9 @@ async function main() {
const InkContract = await ethers.getContractFactory("InkContract");
const contract = await InkContract.deploy();

await contract.deployed();
await contract.waitForDeployment();

console.log("InkContract deployed to:", contract.address);
console.log("InkContract deployed to:", await contract.getAddress);
}

main()
Expand Down