In the example we changed the name of the mosaic to lowercase, because if we put tx.mosaicName = "myMosaic"; produces an error, it should remain tx.mosaicName = "mymosaic";
In the // Serialize transaction and announce part, code is added to show the satisfactory result or to show an error message.
In the example we changed the name of the mosaic to lowercase, because if we put tx.mosaicName = "myMosaic"; produces an error, it should remain tx.mosaicName = "mymosaic"; In the // Serialize transaction and announce part, code is added to show the satisfactory result or to show an error message.