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:
parent
a3f9bf24f7
commit
3b8d986445
@ -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
Loading…
x
Reference in New Issue
Block a user