Skip to content

Commit ff9a50f

Browse files
committed
fix more stuff
1 parent 1018add commit ff9a50f

File tree

1 file changed

+4
-4
lines changed
  • pages/price-feeds/troubleshoot

1 file changed

+4
-4
lines changed

pages/price-feeds/troubleshoot/svm.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
This reference page is designed to help you troubleshoot common issues you may encounter when using Pyth Price Feeds on SVM chains.
44
Follow the steps provided below to diagnose and resolve the issue.
55

6-
1. `compilation error[E0277]: the trait bound PriceUpdateV2: anchor_lang::AccountDeserialize is not satisfied{:rust}`
6+
1. `error[E0277]: the trait bound PriceUpdateV2: anchor_lang::AccountDeserialize is not satisfied{:rust}`
77

88
This error happens when a program using the [`pyth-solana-receiver-sdk`](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk) fails to compile. It is caused by an `anchor-lang` version mismatch.
99
Make sure the transitive version of `anchor-lang` brought by `pyth-solana-receiver-sdk`
1010
matches the version of `anchor-lang` of your program's `Cargo.toml`.
1111

12-
You can fix it by following steps:
12+
You can fix it by following these steps:
1313

14-
- Check the version of [`anchor-lang`](https://github.com/guibescos/anchor-pyth/blob/broken-build/programs/anchor-pyth/Cargo.toml) in your `Cargo.toml` (in the example `0.29.0{:js}`) call it `x.y.z`
15-
- Check the version of `anchor-lang` in the `pyth-solana-receiver-sdk` tree in `Cargo.lock` (in the example `0.30.1{:js}`) call it `a.b.c`
14+
- Check the version of `anchor-lang` in your [`Cargo.toml`](https://github.com/guibescos/anchor-pyth/blob/broken-build/programs/anchor-pyth/Cargo.toml) (in the example `0.29.0{:js}`) call it `x.y.z`
15+
- Check the version of `anchor-lang` in the `pyth-solana-receiver-sdk` tree in [`Cargo.lock`](https://github.com/guibescos/anchor-pyth/blob/broken-build/programs/anchor-pyth/Cargo.lock) (in the example `0.30.1{:js}`) call it `a.b.c`
1616
- Run `cargo update -p [email protected] --precise x.y.z{:bash}`
1717
replacing `a.b.c` and `x.y.z` by the versions in the previous steps. For example:\
1818
`cargo update -p [email protected] --precise 0.29.0{:bash}`

0 commit comments

Comments
 (0)