Skip to content

Commit

Permalink
ALL-6466: bignumber fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislavjadavan committed May 3, 2024
1 parent 394b4d0 commit c61afea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"base-58": "^0.0.1",
"base32.js": "^0.1.0",
"bchaddrjs": "^0.5.2",
"bignumber.js": "^9.0.2",
"bignumber.js": "^9.1.2",
"bip32": "^2.0.5",
"bip39": "^3.0.2",
"bitcoinjs-lib": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/blockchain/polygon/src/lib/services/polygon.kms.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EvmBasedKMSServiceArgs, EvmBasedSdkError, evmBasedUtils } from '@tatumio/shared-blockchain-evm-based'
import { Currency, PendingTransaction } from '@tatumio/api-client'
import { abstractBlockchainKms } from '@tatumio/shared-blockchain-abstract'
import { BigNumber } from 'ethers'
import { SdkErrorCode } from '@tatumio/shared-abstract-sdk'
import BigNumber from 'bignumber.js'

export const polygonKmsService = (args: EvmBasedKMSServiceArgs) => {
return {
Expand All @@ -25,7 +25,7 @@ export const polygonKmsService = (args: EvmBasedKMSServiceArgs) => {
})
}

if (!transactionConfig.gasPrice || BigNumber.from(transactionConfig.gasPrice).isZero()) {
if (!transactionConfig.gasPrice || BigNumber(transactionConfig.gasPrice).isZero()) {
transactionConfig.gasPrice = await args.web3.getGasPriceInWei()
}

Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4716,7 +4716,7 @@ bigint-buffer@^1.1.5:
dependencies:
bindings "^1.3.0"

bignumber.js@*, bignumber.js@^9.0.0, bignumber.js@^9.0.1, bignumber.js@^9.0.2:
bignumber.js@*, bignumber.js@^9.0.0, bignumber.js@^9.0.1:
version "9.1.0"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.0.tgz#8d340146107fe3a6cb8d40699643c302e8773b62"
integrity sha512-4LwHK4nfDOraBCtst+wOWIHbu1vhvAPJK8g8nROd4iuc3PSEjWif/qwbkh8jwCJz6yDBvtU4KPynETgrfh7y3A==
Expand All @@ -4741,6 +4741,11 @@ bignumber.js@^9.1.0, bignumber.js@^9.1.1:
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.1.tgz#c4df7dc496bd849d4c9464344c1aa74228b4dac6"
integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==

bignumber.js@^9.1.2:
version "9.1.2"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c"
integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==

bin-links@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-4.0.1.tgz#afeb0549e642f61ff889b58ea2f8dca78fb9d8d3"
Expand Down

0 comments on commit c61afea

Please sign in to comment.