Skip to content

Commit 54fb495

Browse files
committed
userophash needs to be valid for schema
1 parent 51e15d4 commit 54fb495

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/server/routes/transaction/cancel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ export async function cancelTransaction(fastify: FastifyInstance) {
105105
// isUserOp: false,
106106
gas: 0n,
107107
...(transaction.isUserOp
108-
? { userOpHash: "0x", nonce: "cancelled", isUserOp: true }
108+
? {
109+
userOpHash:
110+
"0x0000000000000000000000000000000000000000000000000000000000000000",
111+
nonce: "cancelled",
112+
isUserOp: true,
113+
}
109114
: { nonce: -1, sentTransactionHashes: [], isUserOp: false }),
110115
};
111116
} else if (transaction.status === "sent") {

0 commit comments

Comments
 (0)