From 99e1b4ae57bbc9642a5f0e2dd715a4f0566d9972 Mon Sep 17 00:00:00 2001 From: linna Date: Fri, 20 Dec 2024 15:42:12 -0500 Subject: [PATCH] fix: removes value field from encodeAbiParameters args --- .../ma-v2/modules/paymaster-guard-module/module.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/account-kit/smart-contracts/src/ma-v2/modules/paymaster-guard-module/module.ts b/account-kit/smart-contracts/src/ma-v2/modules/paymaster-guard-module/module.ts index 9076cc0e03..92638eb978 100644 --- a/account-kit/smart-contracts/src/ma-v2/modules/paymaster-guard-module/module.ts +++ b/account-kit/smart-contracts/src/ma-v2/modules/paymaster-guard-module/module.ts @@ -1,18 +1,7 @@ import { encodeAbiParameters, type Address, type Hex } from "viem"; import { paymasterGuardModuleAbi } from "./abis/paymasterGuardModuleAbi.js"; -const addresses = { - default: "0x00", //dummy address, replace with deployed module address? -} as Record; - -const meta = { - name: "PaymasterGuardModule", - version: "alpha.1", - addresses, -}; - export const PaymasterGuardModule = { - meta, abi: paymasterGuardModuleAbi, encodeOnInstallData: (args: { entityId: number; @@ -23,11 +12,9 @@ export const PaymasterGuardModule = { [ { type: "uint32", - value: entityId, }, { type: "address", - value: paymaster, }, ], [entityId, paymaster] @@ -40,7 +27,6 @@ export const PaymasterGuardModule = { [ { type: "uint32", - value: entityId, }, ], [entityId]