Skip to content

Commit

Permalink
Using string as contract name
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Stefanov <[email protected]>
  • Loading branch information
stefan-stefanooov committed Oct 19, 2023
1 parent 0f4d2ab commit 82534ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ const Contract = {
ExchangeRateMock: 'ExchangeRateMock',
PrngSystemContract: 'PrngSystemContract',
Concatenation: 'Concatenation',
Errors: 'Errors',
ErrorsExternal: 'ErrorsExternal',
Transaction: 'Transaction',
MessageFrameAddresses: 'MessageFrameAddresses',
New: 'New',
Expand Down
4 changes: 2 additions & 2 deletions test/solidity/errors/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 82534ce

Please sign in to comment.