Skip to content

Make createAssetTransferOutput() support lockScriptHash #196

@joojis

Description

@joojis

src/core/index.ts

Current

public createAssetTransferOutput(params: {
    recipient: AssetTransferAddress | string;
    assetType: H256 | string;
    amount: number;
}): AssetTransferOutput

Patch

public createAssetTransferOutput(params: {
    recipient: AssetTransferAddress | string;
    assetType: H256 | string;
    amount: number;
} | {
    lockScriptHash: H256 | string;
    parameters: Buffer[];
    assetType: H256 | string;
    amount: number;
}): AssetTransferOutput

The constructor of AssetTransferOutput already supports it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions