From 70b8af1d9a9621a3e8488f05954ce52d52585488 Mon Sep 17 00:00:00 2001 From: Vignesh Date: Fri, 13 Dec 2024 21:08:23 +0530 Subject: [PATCH 1/2] added 0x to paymasterAndData before sending to arka --- src/sdk/base/VerifyingPaymasterAPI.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdk/base/VerifyingPaymasterAPI.ts b/src/sdk/base/VerifyingPaymasterAPI.ts index 5fbdab0f..e0bf6ea0 100644 --- a/src/sdk/base/VerifyingPaymasterAPI.ts +++ b/src/sdk/base/VerifyingPaymasterAPI.ts @@ -50,6 +50,7 @@ export class VerifyingPaymasterAPI extends PaymasterAPI { }; const op = await ethers.utils.resolveProperties(pmOp); op.preVerificationGas = calcPreVerificationGas(op); + op.paymasterAndData = '0x' // Ask the paymaster to sign the transaction and return a valid paymasterAndData value. const paymasterAndData = await fetch(this.paymasterUrl, { From 0dad5641ac73871293a9c98e06dbb48aae19af0f Mon Sep 17 00:00:00 2001 From: Vignesh Date: Fri, 13 Dec 2024 21:10:29 +0530 Subject: [PATCH 2/2] updated changelog and package version --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c955f786..6d258f58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## [1.9.1] - 2024-12-13 +### Bug Fix +- Added `0x` before sending userOp to paymaster + ## [1.9.0] - 2024-12-02 - Added default configuration for Arbitrum Sepolia diff --git a/package-lock.json b/package-lock.json index 2978fe00..2d429c0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@etherspot/prime-sdk", - "version": "1.9.0", + "version": "1.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@etherspot/prime-sdk", - "version": "1.9.0", + "version": "1.9.1", "license": "MIT", "dependencies": { "@apollo/client": "3.8.7", diff --git a/package.json b/package.json index 9c085157..b681d637 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/prime-sdk", - "version": "1.9.0", + "version": "1.9.1", "description": "Etherspot Prime (Account Abstraction) SDK", "keywords": [ "ether",