fix gas price

This commit is contained in:
poma 2020-10-20 09:28:59 +03:00
parent 1eec6aa329
commit 62bcd2aa95
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
2 changed files with 2 additions and 2 deletions

@ -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()
} }
/** /**