Skip to content

Commit bac3fe7

Browse files
[CI Skip] release/stable 0.0.304
skip-checks: true
1 parent fd66fb5 commit bac3fe7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
1 Spaceforce Change order of params to match example (#90)
6666
1 Stéphane P Fix doc typo (#300)
6767
1 sulaman Update simple-connect.md (#464)
68+
1 Waseem Ahmad docs: Use correct functions in `derive.balances` examples (#500)
6869
1 Wil Wade Small fixes for cookbook (#302)
6970
1 yaohsin Update verify-signature.md (#198)
7071
1 Zoheb Salam Update Readme with `keysAt()` and `entriesAt()` (#218)

docs/derives/derives.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Retrieves the essential balance details for an account, such as free balance and
271271
```javascript
272272
const ALICE = 'F7Hs';
273273
274-
api.derive.balances.account(ALICE, ({ accountId, lockedBalance }) => {
274+
api.derive.balances.all(ALICE, ({ accountId, lockedBalance }) => {
275275
console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
276276
});
277277
```
@@ -285,7 +285,7 @@ Retrieves the complete balance information for an account, including free balanc
285285
```javascript
286286
const ALICE = 'F7Hs';
287287
288-
api.derive.balances.all(ALICE, (accountInfo) => {
288+
api.derive.balances.account(ALICE, (accountInfo) => {
289289
console.log(
290290
`${accountInfo.accountId} info:`,
291291
Object.keys(accountInfo).map((key) => `${key}: ${accountInfo[key]}`)
@@ -1477,4 +1477,4 @@ Retrieves signing-related information for an account, including the nonce, block
14771477
"14mM9FRDDtwSYicjNxSvMfQkap8o4m9zHq7hNW4JpbSL4PPU"
14781478
);
14791479
console.log(info);
1480-
```
1480+
```

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polkadot-js",
3-
"version": "0.0.303",
3+
"version": "0.0.304",
44
"engine-strict": true,
55
"engines": {
66
"node": ">=18.14"
@@ -47,7 +47,7 @@
4747
"@cmfcmf/docusaurus-search-local": "^1.1.0"
4848
},
4949
"versions": {
50-
"git": "0.0.303",
51-
"npm": "0.0.303"
50+
"git": "0.0.304",
51+
"npm": "0.0.304"
5252
}
5353
}

0 commit comments

Comments
 (0)