From e4e9ebe3b00238a310a0a395395fa22bbba5df47 Mon Sep 17 00:00:00 2001 From: Stefan Stefanov Date: Thu, 19 Oct 2023 18:55:39 +0300 Subject: [PATCH] Using string as contract name Signed-off-by: Stefan Stefanov --- test/constants.js | 1 - test/solidity/account/nonExisting.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/constants.js b/test/constants.js index 91bd15402..11537868c 100644 --- a/test/constants.js +++ b/test/constants.js @@ -108,7 +108,6 @@ const Contract = { AddressContract: 'AddressContract', Recipient: 'Recipient', Inheritance: 'Inheritance', - NonExisting: 'NonExisting', } const CALL_EXCEPTION = 'CALL_EXCEPTION' diff --git a/test/solidity/account/nonExisting.js b/test/solidity/account/nonExisting.js index 0b3a21522..554255744 100644 --- a/test/solidity/account/nonExisting.js +++ b/test/solidity/account/nonExisting.js @@ -28,7 +28,7 @@ describe('@solidityequiv3 Solidity Account non Existing', function () { before(async function () { randomAddress = ethers.Wallet.createRandom().address; - const factory = await ethers.getContractFactory(Constants.Contract.NonExisting) + const factory = await ethers.getContractFactory('NonExisting') fakeContract = factory.attach(randomAddress); contract = await factory.deploy()