Skip to content

SignatureErc6492.assert

Asserts that the wrapped signature is valid.

Imports

Named
import { SignatureErc6492 } from 'ox/erc6492'

Examples

import { SignatureErc6492 } from 'ox/erc6492'
 
SignatureErc6492.assert('0xdeadbeef')
InvalidWrappedSignatureError: Value `0xdeadbeef` is an invalid ERC-6492 wrapped signature.

Definition

function assert(
  wrapped: Wrapped,
): void

Source: src/erc6492/SignatureErc6492.ts

Parameters

wrapped

The wrapped signature to assert.

Return Type

void