wrapSignatureWith6492

Wraps a given signature with additional data following the EIP-6492 standard.

Import

1import { wrapSignatureWith6492 } from "@aa-sdk/core";

Usage

1import { wrapSignatureWith6492 } from "@aa-sdk/core";
2
3const signature = wrapSignatureWith6492({
4 factoryAddress: "0x...",
5 factoryCalldata: "0x...",
6 signature: "0x...",
7});

Parameters

params

SignWith6492Params The parameters to wrap the signature

params.factoryAddress

Hex The address of the factory

params.factoryCalldata

Hex The calldata for the factory

params.signature

Hex The original signature that needs to be wrapped

Returns

Hash The wrapped signature