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

fix remove fee, clean up

This commit is contained in:
arsenyjin 2020-06-10 14:48:12 +02:00
parent a3f9bf24f7
commit 3b8d986445
3 changed files with 37 additions and 143 deletions

View File

@ -114,8 +114,7 @@ export class DataTokens {
dataTokenAddress,
{ from: account }
)
let fee = await this.web3.utils.toWei('1', 'ether')
const estGas = await datatoken.methods.mint(address, amount)
.estimateGas(function(err, estGas){
return estGas
@ -123,7 +122,6 @@ export class DataTokens {
const trxReceipt = await datatoken.methods.mint(address, amount)
.send({
value:fee,
from:account,
gas: estGas*2,
gasPrice: '3000000000'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long