diff --git a/test/TestContractHandler.ts b/test/TestContractHandler.ts index e2041832..683b5630 100644 --- a/test/TestContractHandler.ts +++ b/test/TestContractHandler.ts @@ -53,7 +53,7 @@ export class TestContractHandler { .send({ from: minter, gas: estGas + 1, - gasPrice: '12345678' + gasPrice: '3000000000' }) .then(function (contract) { return contract.options.address @@ -77,7 +77,7 @@ export class TestContractHandler { .send({ from: minter, gas: estGas + 1, - gasPrice: '12345678' + gasPrice: '3000000000' }) .then(function (contract) { return contract.options.address diff --git a/test/integration/Rinkeby.test.ts b/test/integration/Rinkeby.test.ts index 741e42ac..38fef0f7 100644 --- a/test/integration/Rinkeby.test.ts +++ b/test/integration/Rinkeby.test.ts @@ -6,7 +6,6 @@ const factory = require('@oceanprotocol/contracts/artifacts/development/Factory. const datatokensTemplate = require('@oceanprotocol/contracts/artifacts/development/DataTokenTemplate.json') describe('Rinkeby test', () => { - let owner let contracts describe('#test', () => { @@ -18,7 +17,12 @@ describe('Rinkeby test', () => { factory.bytecode, web3 ) - await contracts.deployContracts(owner) + + const privateKey = 'PRIVATE_KEY' + const account = web3.eth.accounts.privateKeyToAccount('0x' + privateKey) + web3.eth.accounts.wallet.add(account) + + await contracts.deployContracts(account.address) }) })