UpgradedToU32RefCount

Storage Plain v101 → current

Migration flag for u32 reference count upgrade.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

Internal migration tracking.

Use Cases

  • Migration tracking

From Chain Metadata

True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.

Purpose & Usage

Purpose

Track whether a specific migration has run.

Common Query Patterns

  • Single value query

Stored Value

value (bool)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query UpgradedToU32RefCount storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("System")]
  [stringCamelCase("UpgradedToU32RefCount")]();
console.log("UpgradedToU32RefCount:", result.toHuman());

Runtime Info

Pallet
System
Storage Kind
Plain
First Version
v101
Current Version
v393