SignatureErc8010.assert
Asserts that the wrapped signature is valid.
Imports
Named
import { SignatureErc8010 } from 'ox/erc8010'
Examples
import { SignatureErc8010 } from 'ox/erc8010'
SignatureErc8010.assert('0xdeadbeef')
InvalidWrappedSignatureError: Value `0xdeadbeef` is an invalid ERC-8010 wrapped signature.
Definition
function assert(
value: Unwrapped | Wrapped,
): void
Source: src/erc8010/SignatureErc8010.ts
Parameters
value
- Type:
Unwrapped | Wrapped
The value to assert.
value.authorization
- Type:
{ address: abitype_Address; chainId: number; nonce: bigint; r: bigint; s: bigint; yParity: number; }
Authorization signed by the delegatee.
value.data
- Type:
0x${string}
- Optional
Data to initialize the delegation.
value.signature
- Type:
0x${string}
The original signature.
value.to
- Type:
Address.Address | undefined
- Optional
Address of the initializer.
Return Type
void