diff --git a/smart-contract-example/test/ChipToken.js b/smart-contract-example/test/ChipToken.js index 65cea9f..652380b 100644 --- a/smart-contract-example/test/ChipToken.js +++ b/smart-contract-example/test/ChipToken.js @@ -9,7 +9,7 @@ describe('ChipToken', function () { beforeEach(async function () { this.ChipToken = await ethers.getContractFactory("ChipToken"); this.chips = await this.ChipToken.deploy(); - await this.chips.deployed(); + await this.chips.waitForDeployment(); }); // Network needs to bootstrap before running this test successfully needs (~1 min) @@ -31,4 +31,4 @@ describe('ChipToken', function () { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); -} \ No newline at end of file +}