Skip to content

MosaicId can be instantiated with undefined #348

@decentraliser

Description

@decentraliser

https://github.com/nemtech/nem2-sdk-typescript-javascript/blob/dc6135d141b4d3de75fac8f64ed38705c92d59ce/src/model/mosaic/MosaicId.ts#L52

new MosaicId(undefined) does not throw an error. As a consequence, it is possible to create a transaction with an empty Mosaic object.

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions