@abstract-foundation/agw-client
Version:
Abstract Global Wallet Client SDK
17 lines (15 loc) • 477 B
text/typescript
import { BaseError } from "viem";
export class InvalidEip712TransactionError extends BaseError {
constructor() {
super(
[
"Transaction is not an EIP712 transaction.",
"",
"Transaction must:",
' - include `type: "eip712"`',
" - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`",
].join("\n"),
{ name: "InvalidEip712TransactionError" },
);
}
}