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

fix more issues

This commit is contained in:
Ahmed Ali 2020-06-19 10:37:37 +02:00
parent 4554f420e3
commit 1a7799a2c5
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,7 @@ export class DataTokens {
const estGas = await factory.methods
.createToken(metaDataStoreURI)
.estimateGas(function (err, estGas) {
if (err) console.log('Datatokens: ' + err)
return estGas
})
// Invoke createToken function of the contract
@ -110,6 +111,7 @@ export class DataTokens {
const estGas = await datatoken.methods
.mint(address, amount)
.estimateGas(function (err, estGas) {
if (err) console.log('Datatokens: ' + err)
return estGas
})

View File

@ -41,6 +41,7 @@ export class TestContractHandler {
arguments: ['Template Contract', 'TEMPLATE', minter, cap, blob]
})
.estimateGas(function (err, estGas) {
if (err) console.log('DeployContracts: ' + err)
return estGas
})
// deploy the contract and get it's address
@ -64,6 +65,7 @@ export class TestContractHandler {
arguments: [this.templateAddress]
})
.estimateGas(function (err, estGas) {
if (err) console.log('DeployContracts: ' + err)
return estGas
})
// deploy the contract and get it's address