Skip to content

Commit b218df9

Browse files
authored
Fix invalid link and improve structure (#385)
1 parent 003ecc2 commit b218df9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rm -r src/* test/*
6868
### Install the Pyth SDK
6969

7070
Pyth provides a Solidity SDK that can be used to interact with one-chain Pyth Price Feed contracts.
71-
It exposes multiple [methods](../api-reference/evm) to read and interact with the contracts.
71+
It exposes multiple [methods](/price-feeds/api-reference/evm) to read and interact with the contracts.
7272

7373
Use `npm` to add the Pyth SDK:
7474

@@ -333,9 +333,9 @@ contract MyFirstPythContract {
333333
```
334334

335335
The end of this function calls the `mint` function we defined before.
336-
Before that, however, the function calls `[updatePriceFeeds]`(https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract.
336+
Before that, however, the function calls [`updatePriceFeeds`](https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract.
337337
This function takes a payload of `bytes[]` that is passed into the function itself.
338-
The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using `[getUpdateFee]`(https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee).
338+
The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using [`getUpdateFee`](https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee).
339339
The caller of this function can pass in a recent Pyth price update as this payload, guaranteeing that the `StalePrice` error won't occur.
340340

341341
We can test this function by adding the following snippet to the test file:
@@ -445,7 +445,7 @@ contract MyFirstPythContract {
445445
446446
```
447447

448-
And out test file should look like this:
448+
And our test file should look like this:
449449

450450
```solidity copy filename="MyFirstPythContract.t.sol"
451451
// SPDX-License-Identifier: UNLICENSED

0 commit comments

Comments
 (0)