wrapSignatureWith6492
Wraps a given signature with additional data following the EIP-6492 standard.
Import
import { wrapSignatureWith6492 } from "@aa-sdk/core";
Usage
import { wrapSignatureWith6492 } from "@aa-sdk/core";
const signature = wrapSignatureWith6492({
factoryAddress: "0x...",
factoryCalldata: "0x...",
signature: "0x...",
});
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