Skip to content

Some type declarations are wrong. #245

@sgkim126

Description

@sgkim126
  • The parameter of AssetMintOutput.fromJSON is not declared as JSON object.
    public static fromJSON(data: {
    lockScriptHash: string;
    parameters: Buffer[];
    amount: number | null;
  • The parameter of AssetTransferOutput.fromJSON is not declared as JSON object.
    public static fromJSON(data: AssetTransferOutputData) {
  • output field of the parameter of AssetMintTransaction should not be a AssetMintOutput
    constructor(data: {
    networkId: NetworkId;
    shardId: number;
    metadata: string;
    output: AssetMintOutput;
    registrar: PlatformAddress | null;
    nonce: number;
    }) {
    const { networkId, shardId, metadata, output, registrar, nonce } = data;
    this.networkId = networkId;
    this.shardId = shardId;
    this.metadata = metadata;
    this.output = new AssetMintOutput(output);
    this.registrar = registrar;
    this.nonce = nonce;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions