Skip to content

Commit

Permalink
fix: invalid user operation error mesages to correctly serialize bigi…
Browse files Browse the repository at this point in the history
…nt fields (#557)
  • Loading branch information
denniswon authored Apr 9, 2024
1 parent 2ea01cc commit 29c2fc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/errors/useroperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export class InvalidUserOperationError extends BaseError {
super(
`Request is missing parameters. All properties on UserOperationStruct must be set. uo: ${JSON.stringify(
uo,
null,
(_key, value) =>
typeof value === "bigint"
? {
type: "bigint",
value: value.toString(),
}
: value,
2
)}`
);
Expand Down

0 comments on commit 29c2fc6

Please sign in to comment.