diff --git a/packages/subspace/queries/index.ts b/packages/subspace/queries/index.ts index e746f1d3..a59d8b58 100644 --- a/packages/subspace/queries/index.ts +++ b/packages/subspace/queries/index.ts @@ -377,6 +377,9 @@ export async function queryStakeFrom( return stakeOutData; } +/** + * NOTE: This function might be wrong. + */ export async function queryCalculateStakeFrom(api: Api) { // Stake From is the list of keys that the key has staked to. @@ -390,7 +393,7 @@ export async function queryCalculateStakeFrom(api: Api) { const perAddr = new Map(); for (const [storageKey, value] of stakeFromQuery) { - const addr = storageKey.toString(); + const addr = storageKey.toString(); // NOTE: this key should have two values like in `queryCalculateStakeOut` const staked = BigInt(value.toString());