EmbeddedAccountOperationRestrictionTransactionV1 constructor

EmbeddedAccountOperationRestrictionTransactionV1({
  1. PublicKey? signerPublicKey,
  2. int? version,
  3. NetworkType? network,
  4. TransactionType? type,
  5. AccountRestrictionFlags? restrictionFlags,
  6. List<TransactionType>? restrictionAdditions,
  7. List<TransactionType>? restrictionDeletions,
})

Implementation

EmbeddedAccountOperationRestrictionTransactionV1(
    {PublicKey? signerPublicKey,
    int? version,
    NetworkType? network,
    TransactionType? type,
    AccountRestrictionFlags? restrictionFlags,
    List<TransactionType>? restrictionAdditions,
    List<TransactionType>? restrictionDeletions}) {
  this.signerPublicKey = signerPublicKey ?? PublicKey();
  this.version = version ??
      EmbeddedAccountOperationRestrictionTransactionV1.TRANSACTION_VERSION;
  this.network = network ?? NetworkType.MAINNET;
  this.type = type ??
      EmbeddedAccountOperationRestrictionTransactionV1.TRANSACTION_TYPE;
  this.restrictionFlags = restrictionFlags ?? AccountRestrictionFlags.ADDRESS;
  this.restrictionAdditions = restrictionAdditions ?? [];
  this.restrictionDeletions = restrictionDeletions ?? [];
}