TronTransferContractData.fromPB constructor

TronTransferContractData.fromPB(
  1. TransferContract contract
)

Implementation

factory TronTransferContractData.fromPB(
  TransferContract contract,
) {
  return TronTransferContractData(
    to: base58CheckFromHex(contract.toAddress.toUint8List),
    from: base58CheckFromHex(contract.ownerAddress.toUint8List),
    amount: contract.amount.toInt().toBigInt,
  );
}