diff --git a/packages/web3-eth-contract/test/fixtures/Abi.json b/packages/web3-eth-contract/test/fixtures/AbiItem.ts similarity index 72% rename from packages/web3-eth-contract/test/fixtures/Abi.json rename to packages/web3-eth-contract/test/fixtures/AbiItem.ts index 3538463596d..bcc94ce4b02 100644 --- a/packages/web3-eth-contract/test/fixtures/Abi.json +++ b/packages/web3-eth-contract/test/fixtures/AbiItem.ts @@ -1,4 +1,21 @@ -{ +/* +This file is part of web3.js. + +web3.js is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +web3.js is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with web3.js. If not, see . +*/ + +export const Abi = { anonymous: false, constant: true, inputs: [ diff --git a/packages/web3-eth-contract/test/unit/contract.test.ts b/packages/web3-eth-contract/test/unit/contract.test.ts index b2917c86d9c..b55a19c1457 100644 --- a/packages/web3-eth-contract/test/unit/contract.test.ts +++ b/packages/web3-eth-contract/test/unit/contract.test.ts @@ -21,7 +21,7 @@ import { Web3ContractError } from 'web3-errors'; import { Web3Context , Web3ConfigEvent } from 'web3-core'; import { Web3ValidatorError } from 'web3-validator'; import { AbiItem } from 'web3-utils'; -import {Abi} from '../fixtures/Abi.json' +import {Abi} from '../fixtures/AbiItem' import { Contract } from '../../src'; import { sampleStorageContractABI } from '../fixtures/storage'; import { GreeterAbi, GreeterBytecode } from '../shared_fixtures/build/Greeter';