Skip to content

Commit

Permalink
Remove correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessgusclark committed Jan 25, 2024
1 parent 167164f commit d704f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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.1.0",
"version": "1.1.0-beta.2",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 1 addition & 5 deletions packages/rif-relay-sdk/src/RifRelaySDK/RifRelaySDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ export class RIFRelaySDK {
filterTxOptions(tx),
)

const internalCallCost = estimated.gt(INTERNAL_TRANSACTION_ESTIMATE_CORRECTION)
? estimated.sub(INTERNAL_TRANSACTION_ESTIMATE_CORRECTION)
: estimated

const updatedNonceWithPendingTxs = nonce.add(pendingTxsCount)

const relayRequest: RelayRequest = {
Expand All @@ -145,7 +141,7 @@ export class RIFRelaySDK {
to: tx.to || ZERO_ADDRESS,
data: tx.data?.toString() || '0x',
value: tx.value?.toString() || '0',
gas: internalCallCost.toString(),
gas: estimated.toString(),
nonce: updatedNonceWithPendingTxs.toString(),
tokenContract: tokenContract.toLowerCase(),
tokenAmount: tokenAmount.toString(),
Expand Down

0 comments on commit d704f57

Please sign in to comment.