From ca708602f93b39a5adca8ed9a936f004021f9141 Mon Sep 17 00:00:00 2001 From: Stefan Stefanov Date: Thu, 19 Oct 2023 18:50:43 +0300 Subject: [PATCH] Use string in contract name Signed-off-by: Stefan Stefanov --- test/constants.js | 1 - test/solidity/defaults/defaults.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/constants.js b/test/constants.js index 1e06c63bd..11537868c 100644 --- a/test/constants.js +++ b/test/constants.js @@ -108,7 +108,6 @@ const Contract = { AddressContract: 'AddressContract', Recipient: 'Recipient', Inheritance: 'Inheritance', - Defaults: "Defaults", } const CALL_EXCEPTION = 'CALL_EXCEPTION' diff --git a/test/solidity/defaults/defaults.js b/test/solidity/defaults/defaults.js index ca47c934d..7f56bfc54 100644 --- a/test/solidity/defaults/defaults.js +++ b/test/solidity/defaults/defaults.js @@ -9,7 +9,7 @@ describe('@solidityequiv3 Solidity Defaults', function () { before(async function () { signers = await ethers.getSigners() - const factory = await ethers.getContractFactory(Constants.Contract.Defaults) + const factory = await ethers.getContractFactory("Defaults") contract = await factory.deploy() })