Skip to content

Commit ac8f65a

Browse files
committed
Upgrade dependencies
1 parent de536fa commit ac8f65a

File tree

3 files changed

+4333
-3016
lines changed

3 files changed

+4333
-3016
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vechain.energy/gas",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "calculate estimated gas usage for transactions",
55
"repository": "https://github.com/vechain-energy/gas.git",
66
"bugs": "https://github.com/vechain-energy/gas/issues",
@@ -9,22 +9,22 @@
99
"types": "types/index.d.ts",
1010
"license": "MIT",
1111
"devDependencies": {
12-
"@babel/preset-typescript": "^7.21.5",
13-
"@types/bent": "^7.3.3",
14-
"@types/jest": "^29.5.1",
15-
"jest": "^29.5.0",
16-
"ts-jest": "^29.1.0",
17-
"typescript": "^5.0.4"
12+
"@babel/preset-typescript": "^7.27.1",
13+
"@types/bent": "^7.3.8",
14+
"@types/jest": "^30.0.0",
15+
"jest": "^30.0.3",
16+
"ts-jest": "^29.4.0",
17+
"typescript": "^5.8.3"
1818
},
1919
"scripts": {
2020
"test": "jest src",
2121
"build": "tsc"
2222
},
2323
"dependencies": {
24-
"@vechain/connex-types": "^2.0.12",
24+
"@vechain/connex-types": "^2.2.1",
2525
"bent": "^7.3.12",
26-
"bignumber.js": "^9.1.1",
27-
"web3-eth-abi": "^1.10.0"
26+
"bignumber.js": "^9.3.0",
27+
"web3-eth-abi": "^4.4.1"
2828
},
2929
"keywords": [
3030
"vechain",

src/basePrice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import bent from 'bent'
22
import BigNumber from 'bignumber.js'
3-
import Web3EthAbi from 'web3-eth-abi'
3+
import { decodeParameter } from 'web3-eth-abi'
44

55
export default async function basePrice(nodeOrConnex: Connex | string): Promise<BigNumber> {
66
// get base price via HTTP request
@@ -19,7 +19,7 @@ export default async function basePrice(nodeOrConnex: Connex | string): Promise<
1919
}
2020

2121
const data = response[0].data
22-
let decoded = Web3EthAbi.decodeParameter('uint256', data)
22+
let decoded = decodeParameter('uint256', data)
2323
return new BigNumber(String(decoded))
2424
}
2525

0 commit comments

Comments
 (0)