Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Fix build warnings (#684)
Browse files Browse the repository at this point in the history
* Fix link's relative path

* Repeated forward-slashes (//) are not valid in the href

* Fix formatting due to #665
  • Loading branch information
catalinred authored Jan 6, 2025
1 parent c796a3f commit c30b9f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion content/courses/token-extensions/default-account-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ is `Initialized`.

### Adding default account state

Initializing a mint with the default account state extension involves three instructions:
Initializing a mint with the default account state extension involves three
instructions:

- `SystemProgram.createAccount`
- `createInitializeDefaultAccountStateInstruction`
Expand Down
2 changes: 1 addition & 1 deletion content/guides/advanced/verified-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ solana-verify get-program-hash -u $NETWORK_URL $PROGRAM_ID
```

> You may have different versions deployed on different
> [Solana clusters](/docs/core//clusters.md) (i.e. devnet, testnet, mainnet).
> [Solana clusters](/docs/core/clusters.md) (i.e. devnet, testnet, mainnet).
> Ensure you use the correct network URL for the desired Solana cluster you want
> to verify a program against. Remote verification will only work on mainnet.
Expand Down
14 changes: 6 additions & 8 deletions content/guides/javascript/get-program-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ altRoutes:

An RPC method that returns all accounts owned by a program. Currently pagination
is not supported. Requests to
[`getProgramAccounts`](/docs/rpc//http/getProgramAccounts.mdx) should include
the `dataSlice` and/or `filters` parameters to improve response time and return
only intended results.
[`getProgramAccounts`](/docs/rpc/http/getProgramAccounts.mdx) should include the
`dataSlice` and/or `filters` parameters to improve response time and return only
intended results.

## getProgramAccounts RPC Method

Expand Down Expand Up @@ -101,8 +101,7 @@ can efficiently request just the data we intend to use.
### `filters`

The most common parameter to use with `getProgramAccounts` is the `filters`
array. This array accepts two types of filters, `dataSize` and `memcmp`.
Before
array. This array accepts two types of filters, `dataSize` and `memcmp`. Before
using either of these filters, we should be familiar with how the data we are
requesting is laid out and serialized.

Expand All @@ -129,10 +128,9 @@ any field stored on our account. Specifically, we can query only for accounts
that match a particular set of bytes at a particular position. `memcmp` requires
two arguments:

- `offset`: the position at which to begin comparing data. This position is
- `offset`: the position at which to begin comparing data. This position is
measured in bytes and is expressed as an integer.
- `bytes`: the data that should match the account's data. This is represented
as
- `bytes`: the data that should match the account's data. This is represented as
a base-58 encoded string should be limited to less than 129 bytes.

It's important to note that `memcmp` will only return results that are an exact
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/retry.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ fork.
If an application has access to RPC nodes behind a load balancer, it can also
choose to divide its workload amongst specific nodes. RPC nodes that serve
data-intensive requests such as
[getProgramAccounts](/content//guides/javascript/get-program-accounts.md) may be
[getProgramAccounts](/content/guides/javascript/get-program-accounts.md) may be
prone to falling behind and can be ill-suited for also forwarding transactions.
For applications that handle time-sensitive transactions, it may be prudent to
have dedicated nodes that only handle `sendTransaction`.
Expand Down

0 comments on commit c30b9f7

Please sign in to comment.