ExchangeCreateContract constructor

ExchangeCreateContract({
  1. required TronAddress ownerAddress,
  2. BigInt? firstTokenBalance,
  3. List<int>? firstTokenId,
  4. BigInt? secondTokenBalance,
  5. List<int>? secondTokenId,
})

Create a new ExchangeCreateContract instance with specified parameters.

Implementation

ExchangeCreateContract(
    {required this.ownerAddress,
    this.firstTokenBalance,
    List<int>? firstTokenId,
    this.secondTokenBalance,
    List<int>? secondTokenId})
    : firstTokenId = BytesUtils.tryToBytes(firstTokenId, unmodifiable: true),
      secondTokenId =
          BytesUtils.tryToBytes(secondTokenId, unmodifiable: true);