Skip to content

Commit 1018add

Browse files
committed
pre-commit
1 parent 38cd74b commit 1018add

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

pages/price-feeds/troubleshoot/svm.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Follow the steps provided below to diagnose and resolve the issue.
55

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

8-
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.
9-
Make sure the transitive version of `anchor-lang` brought by `pyth-solana-receiver-sdk`
10-
matches the version of `anchor-lang` of your program's `Cargo.toml`.
8+
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.
9+
Make sure the transitive version of `anchor-lang` brought by `pyth-solana-receiver-sdk`
10+
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 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`
16-
- Run `cargo update -p [email protected] --precise x.y.z{:bash}`
17-
replacing `a.b.c` and `x.y.z` by the versions in the previous steps. For example:\
18-
`cargo update -p [email protected] --precise 0.29.0{:bash}`
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`
16+
- Run `cargo update -p [email protected] --precise x.y.z{:bash}`
17+
replacing `a.b.c` and `x.y.z` by the versions in the previous steps. For example:\
18+
`cargo update -p [email protected] --precise 0.29.0{:bash}`

0 commit comments

Comments
 (0)