Skip to content

Commit

Permalink
Merge pull request #379 from wowica/docs/update-state-query-examples
Browse files Browse the repository at this point in the history
Update doc local state query examples to v6.x
  • Loading branch information
KtorZ authored Apr 2, 2024
2 parents 1bbdecb + f62858d commit 9dd9248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/mini-protocols/local-state-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ client.once('open', () => {

client.on('message', function(msg) {
const response = JSON.parse(msg);
console.log(JSON.stringify(response.result.protocolParameters, null, 4));
console.log(JSON.stringify(response.result, null, 4));
client.close();
});
```
Expand Down Expand Up @@ -245,7 +245,7 @@ client.on('message', function(msg) {

switch (response.method) {
case "queryNetwork/tip":
const point = response.result.tip;
const point = response.result;
rpc("acquireLedgerState", { point });
break;

Expand All @@ -254,7 +254,7 @@ client.on('message', function(msg) {
break;

default:
console.log(response.result.liveStakeDistribution);
console.log(response.result);
client.close();
break;
}
Expand Down

0 comments on commit 9dd9248

Please sign in to comment.