Skip to content

Commit

Permalink
fix: removes value field from encodeAbiParameters args
Browse files Browse the repository at this point in the history
  • Loading branch information
linnall committed Dec 20, 2024
1 parent 3024b06 commit 99e1b4a
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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<number | "default", Address>;

const meta = {
name: "PaymasterGuardModule",
version: "alpha.1",
addresses,
};

export const PaymasterGuardModule = {
meta,
abi: paymasterGuardModuleAbi,
encodeOnInstallData: (args: {
entityId: number;
Expand All @@ -23,11 +12,9 @@ export const PaymasterGuardModule = {
[
{
type: "uint32",
value: entityId,
},
{
type: "address",
value: paymaster,
},
],
[entityId, paymaster]
Expand All @@ -40,7 +27,6 @@ export const PaymasterGuardModule = {
[
{
type: "uint32",
value: entityId,
},
],
[entityId]
Expand Down

0 comments on commit 99e1b4a

Please sign in to comment.