Make createAssetTransferOutput() support lockScriptHash
Closed this issue · 1 comments
joojis commented
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.