Skip to content

[Docs] networkClient.getMappingValue is actually networkClient.getProgramMappingValue #1065

@zklimaleo

Description

@zklimaleo

📚 Documentation

The comments and example codes shown are networkClient.getMappingValue but the actual method available in networkClient is getProgramMappingValue.

sdk/sdk/src/network-client.ts

Lines 1163 to 1173 in 78cf3f2

* @example
* import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
*
* // Create a network client.
* const networkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined);
*
* // Get public balance of an account
* const mappingValue = networkClient.getMappingValue("credits.aleo", "account", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px");
* const expectedValue = "0u64";
* assert(mappingValue === expectedValue);
*/

async getProgramMappingValue(

Same Inconsistent example code in the Provable SDK docs too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions