Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #469 from devpanther/permit-url-suffix
Browse files Browse the repository at this point in the history
feat: add network suffix to payment url
  • Loading branch information
0x4007 authored Jul 6, 2023
2 parents 7347a05 + a0408aa commit 48e006d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const generatePermit2Signature = async (spender: string, amountInEth: str

const base64encodedTxData = Buffer.from(JSON.stringify(txData)).toString("base64");

const result = `${permitBaseUrl}?claim=${base64encodedTxData}&chainId=0x${chainId.toString(16)}`;
const result = `${permitBaseUrl}?claim=${base64encodedTxData}&network=${chainId}`;
logger.info(`Generated permit2 url: ${result}`);
return result;
};

0 comments on commit 48e006d

Please sign in to comment.