Skip to content

Commit

Permalink
fix(utils): payment gas estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscotobar committed Jul 30, 2024
1 parent 0969a11 commit 8b01eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsksmart/rif-relay-client",
"version": "2.2.1",
"version": "2.2.2",
"private": false,
"description": "This project contains all the client code for the rif relay system.",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const estimatePaymentGas = async ({
relayRequest,
}: PaymentGasEstimationParams): Promise<BigNumber> => {
const {
request: { tokenContract, tokenAmount, to },
request: { tokenContract, tokenAmount },
relayData: { callForwarder, gasPrice, feesReceiver },
} = relayRequest;

Expand Down Expand Up @@ -117,7 +117,7 @@ const estimatePaymentGas = async ({
if (isNativePayment) {
return await estimateInternalCallGas({
from: tokenOrigin,
to,
to: feesReceiver,
gasPrice,
value: tokenAmount,
data: '0x',
Expand Down

0 comments on commit 8b01eb5

Please sign in to comment.