Skip to content

Commit

Permalink
Repair fetchEncodedAccount example in docs (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Jan 23, 2025
1 parent 8053823 commit 821b80f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Helper functions are provided for fetching, parsing and decoding accounts as wel
```ts
// Fetch.
const myAddress = address('1234..5678');
const myAccount = fetchAccount(rpc, myAddress);
const myAccount = await fetchEncodedAccount(rpc, myAddress);
myAccount satisfies MaybeEncodedAccount<'1234..5678'>;

// Assert.
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* ```ts
* // Fetch.
* const myAddress = address('1234..5678');
* const myAccount = fetchAccount(rpc, myAddress);
* const myAccount = await fetchEncodedAccount(rpc, myAddress);
* myAccount satisfies MaybeEncodedAccount<'1234..5678'>;
*
* // Assert.
Expand Down

0 comments on commit 821b80f

Please sign in to comment.