Skip to content

Commit

Permalink
fix anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Feb 20, 2025
1 parent 629019a commit 3d90878
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/2.build/2.smart-contracts/release/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Considering this, we advise to name methods using `snake_case` in all SDKs as th
---

## Initializing the Contract
If your contract has an [initialization method](/build/smart-contracts/anatomy/storage#initializing-the-state) you can call it to
If your contract has an [initialization method](../anatomy/storage.md) you can call it to
initialize the state. This is not necessary if your contract implements `default` values for the state.

<Tabs groupId="cli-tabs">
Expand Down
4 changes: 2 additions & 2 deletions docs/2.build/2.smart-contracts/release/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowing the code to be changed.

Contract's can be updated in two ways:

1. **Through tools** such as [NEAR CLI](../../../4.tools/cli.md) or the
1. **Through tools** such as [NEAR CLI](../../../4.tools/cli.md) or the
[NEAR API](../../../4.tools/near-api.md) (if you hold
the account's
[full access key](../../../1.concepts/protocol/access-keys.md)).
Expand Down Expand Up @@ -244,7 +244,7 @@ state, removes the `payments` vector and adds the information to the
</CodeTabs>

Notice that `migrate` is actually an
[initialization method](/build/smart-contracts/anatomy/storage#initializing-the-state)
[initialization method](../anatomy/storage.md)
that **ignores** the existing state (`[#init(ignore_state)]`), thus being able
to execute and rewrite the state.

Expand Down
2 changes: 1 addition & 1 deletion docs/2.build/4.web3-apps/integrate-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ If the method invoked returned a result, you can use the transaction hash to ret
const txHash = new URLSearchParams(window.location.search).get('transactionHashes');
```

Assuming you created the `near` object as in the [example above](#connecting-to-a-contract), then you query the result by utilizing:
Assuming you created the `near` object as in the [example above](#calling-change-methods), then you query the result by utilizing:

<CodeTabs>
<Language value="js" language="js">
Expand Down
2 changes: 1 addition & 1 deletion docs/3.tutorials/examples/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The migration method deserializes the current state (`OldState`) and iterates th
to the new `PostedMessage` that includes the `payment` field.

:::tip
Notice that migrate is actually an [initialization method](/build/smart-contracts/anatomy/storage#initializing-the-state) that ignores the existing state (`[#init(ignore_state)]`), thus being able to execute and rewrite the state.
Notice that migrate is actually an [initialization method](../../2.build/2.smart-contracts/anatomy/storage.md) that ignores the existing state (`[#init(ignore_state)]`), thus being able to execute and rewrite the state.
:::

---
Expand Down
4 changes: 2 additions & 2 deletions docs/6.integrations/create-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const publicKey = keyPair.getPublicKey();

- A unique number or `nonce` is required for each transaction signed with an access key.
- To ensure a unique number is created for each transaction, the current `nonce` should be queried and then incremented by 1.
- Current nonce can be retrieved using the `provider` we [created earlier](#setting-up-a-connection-to-near-1).
- Current nonce can be retrieved using the `provider` we [created earlier](#setting-up-a-connection-to-near).

```js
const accessKey = await provider.query(
Expand Down Expand Up @@ -394,7 +394,7 @@ const signedTransaction = new nearAPI.transactions.SignedTransaction({
Final step is to encode and send the transaction.

- First we serialize transaction into [Borsh](https://borsh.io/), and store the result as `signedSerializedTx`. _(required for all transactions)_
- Then we send the transaction via [RPC call](/api/rpc/introduction) using the `sendJsonRpc()` method nested inside [`near`](#setting-up-connection-to-near-1).
- Then we send the transaction via [RPC call](/api/rpc/introduction) using the `sendJsonRpc()` method nested inside [`near`](#setting-up-a-connection-to-near).

```js
// encodes transaction to serialized Borsh (required for all transactions)
Expand Down
5 changes: 3 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const config = {
REACT_APP_PUBLIC_POSTHOG_HOST: process.env.REACT_APP_PUBLIC_POSTHOG_HOST
},
themes: ['@saucelabs/theme-github-codeblock', '@docusaurus/theme-mermaid'],
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'throw',
presets: [
[
'@docusaurus/preset-classic',
Expand Down

0 comments on commit 3d90878

Please sign in to comment.