message: reapply given for definition
diff: * limitations under the License.
  */
  -import {
  - MosaicCreationTransaction as MosaicDefinitionTransactionLibrary,
  - mosaicId as mosaicIdLibrary,
  - VerifiableTransaction,
  -} from 'nem2-library';
  +import { MosaicCreationTransaction as MosaicDefinitionTransactionLibrary, mosaicId as mosaicIdLibrary, VerifiableTransaction } from 'nem2-library';
  import { PublicAccount } from '../account/PublicAccount';
  import { NetworkType } from '../blockchain/NetworkType';
  import { MosaicId } from '../mosaic/MosaicId';
  @@ -129,4 +125,29 @@ export class MosaicDefinitionTransaction extends Transaction {
  return mosaicDefinitionTransaction.build();
  }
  +
  + /**
  + * @description re-aplly a given value to the transaction in an immutable way
  + * @param {Deadline} deadline
  + * @returns {Transaction}
  + * @memberof Transaction
  + */
  + public reaplygiven(newDeadline: Deadline): MosaicDefinitionTransaction {
  +
  + if (this.isUnannounced) {
  + return new MosaicDefinitionTransaction(
  + this.networkType,
  + this.version,
  + newDeadline,
  + this.fee,
  + this.parentId,
  + this.mosaicId,
  + this.mosaicName,
  + this.mosaicProperties,
  + this.signature,
  + this.signer);
  + } else {
  + throw new Error('Should not modify an announced transaction');
  + }
  + }
  }
  