diff --git a/package-lock.json b/package-lock.json index be85aa4a..dd604793 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.23.0", + "version": "1.23.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@0xpolygonid/js-sdk", - "version": "1.23.0", + "version": "1.23.1", "license": "MIT or Apache-2.0", "dependencies": { "@noble/curves": "^1.4.0", diff --git a/package.json b/package.json index 75485e01..7681b70a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.23.0", + "version": "1.23.1", "description": "SDK to work with Polygon ID", "main": "dist/node/cjs/index.js", "module": "dist/node/esm/index.js", diff --git a/src/storage/blockchain/erc20-permit-sig.ts b/src/storage/blockchain/erc20-permit-sig.ts index 4d89d659..86b9ff7b 100644 --- a/src/storage/blockchain/erc20-permit-sig.ts +++ b/src/storage/blockchain/erc20-permit-sig.ts @@ -23,6 +23,7 @@ export async function getPermitSignature( const nonce = await erc20PermitContract.nonces(await signer.getAddress()); const domainData = await erc20PermitContract.eip712Domain(); const domain = { + name: domainData[1], version: domainData[2], chainId: domainData[3], verifyingContract: tokenAddress diff --git a/tests/handlers/payment.test.ts b/tests/handlers/payment.test.ts index 6972d96a..af08c630 100644 --- a/tests/handlers/payment.test.ts +++ b/tests/handlers/payment.test.ts @@ -361,7 +361,7 @@ describe('payment-request handler', () => { }; if (data.features?.includes(PaymentFeatures.EIP_2612)) { - const permitSignature = getPermitSignature( + const permitSignature = await getPermitSignature( ethSigner, data.tokenAddress, await payContract.getAddress(),