decodeType static method

Object decodeType(
  1. SolidityType type,
  2. Uint8List encoded, [
  3. int offset = 0
])

Implementation

static Object decodeType(
  SolidityType type,
  Uint8List encoded, [
  int offset = 0,
]) {
  final decoded = type.isDynamicType
      ? type.decode(
          encoded,
          IntType.decodeToBigInt(encoded, offset).toInt(),
        )
      : type.decode(encoded, offset);
  return decoded;
}