opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
22 lines (19 loc) • 644 B
text/typescript
import { BaseError } from '../../errors/base.js'
export type InvalidEip712TransactionErrorType =
InvalidEip712TransactionError & {
name: 'InvalidEip712TransactionError'
}
export class InvalidEip712TransactionError extends BaseError {
override name = 'InvalidEip712TransactionError'
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'),
)
}
}