From 82534ce28916153c8fd1f25ce8451808aca6a424 Mon Sep 17 00:00:00 2001 From: Stefan Stefanov Date: Thu, 19 Oct 2023 18:54:18 +0300 Subject: [PATCH] Using string as contract name Signed-off-by: Stefan Stefanov --- test/constants.js | 2 -- test/solidity/errors/errors.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/constants.js b/test/constants.js index c5e55ba63..3602b43cf 100644 --- a/test/constants.js +++ b/test/constants.js @@ -101,8 +101,6 @@ const Contract = { ExchangeRateMock: 'ExchangeRateMock', PrngSystemContract: 'PrngSystemContract', Concatenation: 'Concatenation', - Errors: 'Errors', - ErrorsExternal: 'ErrorsExternal', Transaction: 'Transaction', MessageFrameAddresses: 'MessageFrameAddresses', New: 'New', diff --git a/test/solidity/errors/errors.js b/test/solidity/errors/errors.js index ff7c20276..6a11104ce 100644 --- a/test/solidity/errors/errors.js +++ b/test/solidity/errors/errors.js @@ -26,10 +26,10 @@ describe('@solidityequiv2 Solidity Errors', function () { let contract, hasError before(async function () { - const factoryErrorsExternal = await ethers.getContractFactory(Constants.Contract.ErrorsExternal) + const factoryErrorsExternal = await ethers.getContractFactory('ErrorsExternal') contractExternal = await factoryErrorsExternal.deploy() - const factory = await ethers.getContractFactory(Constants.Contract.Errors) + const factory = await ethers.getContractFactory('Errors') contract = await factory.deploy(contractExternal.address) })