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