parseU32 static method

int parseU32({
  1. Object? value,
})

Parses a value into an unsigned 32-bit integer (0–4,294,967,295).

Implementation

static int parseU32({Object? value}) {
  try {
    final toint = IntUtils.parse(value);
    return toint.asU32;
  } catch (e) {
    throw BcsSerializationException(
      "Invalid value for move type 'U32': Expected an unsigned 32-bit integer (0–4,294,967,295).",
      details: {"value": "$value"},
    );
  }
}