ExchangeTransactionContract constructor

ExchangeTransactionContract({
  1. required TronAddress ownerAddress,
  2. BigInt? exchangeId,
  3. List<int>? tokenId,
  4. BigInt? quant,
  5. BigInt? expected,
})

Create a new ExchangeTransactionContract instance with specified parameters.

Implementation

ExchangeTransactionContract(
    {required this.ownerAddress,
    this.exchangeId,
    List<int>? tokenId,
    this.quant,
    this.expected})
    : tokenId = BytesUtils.tryToBytes(tokenId);