TransactionContract constructor

TransactionContract({
  1. required TransactionContractType type,
  2. required Any parameter,
  3. List<int>? provider,
  4. List<int>? contractName,
  5. int? permissionId,
})

Create a new TransactionContract instance with specified parameters.

Implementation

TransactionContract(
    {required this.type,
    required this.parameter,
    List<int>? provider,
    List<int>? contractName,
    this.permissionId})
    : provider = BytesUtils.tryToBytes(provider, unmodifiable: true),
      contractName = BytesUtils.tryToBytes(contractName, unmodifiable: true);