TriggerSmartContract constructor

TriggerSmartContract({
  1. required TronAddress ownerAddress,
  2. required TronAddress contractAddress,
  3. BigInt? callValue,
  4. List<int>? data,
  5. BigInt? callTokenValue,
  6. BigInt? tokenId,
})

Create a new TriggerSmartContract instance with specified parameters.

Implementation

TriggerSmartContract(
    {required this.ownerAddress,
    required this.contractAddress,
    this.callValue,
    List<int>? data,
    this.callTokenValue,
    this.tokenId})
    : data = BytesUtils.tryToBytes(data, unmodifiable: true);