From 7fbedb6e37133c00f44f952bfa30301cb9a7ceca Mon Sep 17 00:00:00 2001 From: vignesha22 <82584664+vignesha22@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:32:14 +0530 Subject: [PATCH] Arka_Paymaster_Fix (#137) --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/sdk/base/VerifyingPaymasterAPI.ts | 1 + 4 files changed, 8 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", 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, {