- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
20 lines
688 B
TypeScript
20 lines
688 B
TypeScript
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',
|
|
})
|
|
}
|
|
}
|