-
Notifications
You must be signed in to change notification settings - Fork 479
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
📚 Documentation
The comments and example codes shown are networkClient.getMappingValue but the actual method available in networkClient is getProgramMappingValue.
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); | |
| */ |
Line 1174 in 78cf3f2
| async getProgramMappingValue( |
Same Inconsistent example code in the Provable SDK docs too.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation