TronTransferAssetContractData.fromPB constructor
- TransferAssetContract contract
Implementation
factory TronTransferAssetContractData.fromPB(
TransferAssetContract contract,
) {
return TronTransferAssetContractData(
to: base58CheckFromHex(contract.toAddress.toUint8List),
from: base58CheckFromHex(contract.ownerAddress.toUint8List),
amount: contract.amount.toInt().toBigInt,
assetName: contract.assetName.toUint8List.toHex,
);
}