decode method
Decodes a BaseHexAddress from the given ABI-encoded bytes.
Supports both Ethereum and Tron address formats based on the tronTypes
flag.
Implementation
@override
DecoderResult<SolidityAddress> decode(AbiParameter params, List<int> bytes) {
final addrBytes = bytes.sublist(
ABIConst.uintBytesLength - addrLength, ABIConst.uintBytesLength);
return DecoderResult(
result: SolidityAddress.fromBytes(addrBytes),
consumed: ABIConst.uintBytesLength,
name: params.name);
}