EmbeddedHashLockTransactionV1 constructor

EmbeddedHashLockTransactionV1({
  1. PublicKey? signerPublicKey,
  2. int? version,
  3. NetworkType? network,
  4. TransactionType? type,
  5. UnresolvedMosaic? mosaic,
  6. BlockDuration? duration,
  7. Hash256? hash,
})

Implementation

EmbeddedHashLockTransactionV1(
    {PublicKey? signerPublicKey,
    int? version,
    NetworkType? network,
    TransactionType? type,
    UnresolvedMosaic? mosaic,
    BlockDuration? duration,
    Hash256? hash}) {
  this.signerPublicKey = signerPublicKey ?? PublicKey();
  this.version = version ?? EmbeddedHashLockTransactionV1.TRANSACTION_VERSION;
  this.network = network ?? NetworkType.MAINNET;
  this.type = type ?? EmbeddedHashLockTransactionV1.TRANSACTION_TYPE;
  this.mosaic = mosaic ?? UnresolvedMosaic();
  this.duration = duration ?? BlockDuration();
  this.hash = hash ?? Hash256();
}