1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add rinkeby contracts deployment

This commit is contained in:
arsenyjin 2020-06-22 09:26:49 +02:00
parent 68f435a11d
commit 1454785e17
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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)
})
})