TronRequestTriggerSmartContract.fromContract constructor

TronRequestTriggerSmartContract.fromContract(
  1. TriggerSmartContract contract, {
  2. int? permissionId,
  3. BigInt? feeLimit,
})

Implementation

factory TronRequestTriggerSmartContract.fromContract(
    TriggerSmartContract contract,
    {int? permissionId,
    BigInt? feeLimit}) {
  return TronRequestTriggerSmartContract._(
      ownerAddress: contract.ownerAddress,
      contractAddress: contract.contractAddress,
      data: contract.data == null
          ? null
          : BytesUtils.toHexString(contract.data!),
      callTokenValue: contract.callTokenValue,
      callValue: contract.callValue,
      tokenId: contract.tokenId,
      permissionId: permissionId,
      feeLimit: feeLimit);
}