TronRequestTriggerSmartContract.fromMethod constructor
TronRequestTriggerSmartContract.fromMethod({
- required TronAddress ownerAddress,
- required TronAddress contractAddress,
- required AbiFunctionFragment function,
- required List params,
- BigInt? feeLimit,
- int? permissionId,
- String? parameter,
- BigInt? callValue,
- BigInt? callTokenValue,
- BigInt? tokenId,
- bool visible = true,
Implementation
factory TronRequestTriggerSmartContract.fromMethod({
required TronAddress ownerAddress,
required TronAddress contractAddress,
required AbiFunctionFragment function,
required List<dynamic> params,
final BigInt? feeLimit,
final int? permissionId,
String? parameter,
BigInt? callValue,
BigInt? callTokenValue,
BigInt? tokenId,
bool visible = true,
}) {
final rawBytes = function.encode(params, true);
return TronRequestTriggerSmartContract._(
ownerAddress: ownerAddress,
contractAddress: contractAddress,
callTokenValue: callTokenValue,
callValue: callValue,
data: rawBytes.isEmpty ? null : BytesUtils.toHexString(rawBytes),
fragment: function,
tokenId: tokenId,
visible: visible,
permissionId: permissionId,
feeLimit: feeLimit);
}