Skip to content

WrappedSignature.assert

Asserts that the wrapped signature is valid.

Imports

Named
import { WrappedSignature } from 'ox/erc6492'

Examples

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

Definition

function assert(
  wrapped: Hex.Hex,
): void

Source: src/erc6492/WrappedSignature.ts

Parameters

wrapped

  • Type: Hex.Hex

The wrapped signature to assert.

Return Type

void