fix gas price
This commit is contained in:
parent
1eec6aa329
commit
62bcd2aa95
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tx-manager",
|
"name": "tx-manager",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -341,7 +341,7 @@ class Transaction {
|
|||||||
const gasPrices = await this._gasPriceOracle.gasPrices()
|
const gasPrices = await this._gasPriceOracle.gasPrices()
|
||||||
const result = gasPrices[type].toString()
|
const result = gasPrices[type].toString()
|
||||||
console.log(`${type} gas price is now ${result} gwei`)
|
console.log(`${type} gas price is now ${result} gwei`)
|
||||||
return parseUnits(gasPrices[type], 'gwei').toHexString()
|
return parseUnits(result, 'gwei').toHexString()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user