Skip to content

Commit

Permalink
Use number not bigNumber since we are using decimals. (#102)
Browse files Browse the repository at this point in the history
* use number not bigNumber since we are using decimals.

* Bump version.
  • Loading branch information
jessgusclark authored Nov 10, 2023
1 parent 58792a4 commit cd9bfc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rif-relay-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsksmart/rif-relay-light-sdk",
"version": "1.0.13",
"version": "1.0.14",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion packages/rif-relay-sdk/src/RifRelaySDK/RifRelaySDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ export class RIFRelaySDK {
tokenContract,
tokenAmount
)
const tokenGas = tokenGasIncrease ? estTokenGas.mul(tokenGasIncrease) : estTokenGas
const tokenGas = tokenGasIncrease
? estTokenGas.toNumber() * tokenGasIncrease
: estTokenGas

const estimated = await this.provider.estimateGas({ ...tx, gasPrice })
const correction =
Expand Down

0 comments on commit cd9bfc4

Please sign in to comment.