You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
688 B
20 lines
688 B
import type { Address } from 'abitype'
|
|
import { BaseError } from './base.js'
|
|
|
|
export type Eip712DomainNotFoundErrorType = Eip712DomainNotFoundError & {
|
|
name: 'Eip712DomainNotFoundError'
|
|
}
|
|
export class Eip712DomainNotFoundError extends BaseError {
|
|
constructor({ address }: { address: Address }) {
|
|
super(`No EIP-712 domain found on contract "${address}".`, {
|
|
metaMessages: [
|
|
'Ensure that:',
|
|
`- The contract is deployed at the address "${address}".`,
|
|
'- `eip712Domain()` function exists on the contract.',
|
|
'- `eip712Domain()` function matches signature to ERC-5267 specification.',
|
|
],
|
|
name: 'Eip712DomainNotFoundError',
|
|
})
|
|
}
|
|
}
|