From 1454785e1786b74c5e7aaae4b3b959e69f475465 Mon Sep 17 00:00:00 2001 From: arsenyjin Date: Mon, 22 Jun 2020 09:26:49 +0200 Subject: [PATCH] add rinkeby contracts deployment --- test/TestContractHandler.ts | 4 ++-- test/integration/Rinkeby.test.ts | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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) }) })