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:
parent
4554f420e3
commit
1a7799a2c5
@ -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
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user