TransactionContract.deserialize constructor
TransactionContract.deserialize(
- List<int> bytes
)
Implementation
factory TransactionContract.deserialize(List<int> bytes) {
final decode = TronProtocolBufferImpl.decode(bytes);
return TransactionContract(
type: TransactionContractType.findByValue(decode.getField(1)) ??
TransactionContractType.accountCreateContract,
parameter: Any.deserialize(decode.getField(2)),
provider: decode.getField(3),
contractName: decode.getField(4),
permissionId: decode.getField(5));
}