parseU64 static method

BigInt parseU64({
  1. Object? value,
})

Parses a value into an unsigned 64-bit integer (0–2^64−1).

Implementation

static BigInt parseU64({Object? value}) {
  try {
    final toint = BigintUtils.parse(value);
    return toint.asUint64;
  } catch (e) {
    throw BcsSerializationException(
        "Invalid value for move type 'U64': Expected an unsigned 64-bit integer (0–2^64−1).",
        details: {"value": "$value"});
  }
}