Skip to content

Commit 35c1067

Browse files
authored
Fix solana sdk build issue (#62)
* Set limit on solana version as 1.11.0 is not working It is also not deployed in mainnet and might have breaking changes. Will go back to it once they fix it and it is released. * Add comment for version constraint
1 parent c94ae4d commit 35c1067

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pyth-sdk-solana/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = [ "pyth", "solana", "oracle" ]
1111
readme = "README.md"
1212

1313
[dependencies]
14-
solana-program = "1.8.1"
14+
solana-program = "1.8.1, < 1.11"
1515
borsh = "0.9"
1616
borsh-derive = "0.9.0"
1717
bytemuck = "1.7.2"
@@ -22,8 +22,8 @@ serde = { version = "1.0.136", features = ["derive"] }
2222
pyth-sdk = { path = "../pyth-sdk", version = "0.4.0" }
2323

2424
[dev-dependencies]
25-
solana-client = "1.8.1"
26-
solana-sdk = "1.8.1"
25+
solana-client = "1.8.1, < 1.11"
26+
solana-sdk = "1.8.1, < 1.11"
2727

2828
[lib]
2929
crate-type = ["cdylib", "lib"]

pyth-sdk-solana/test-contract/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ no-entrypoint = []
99

1010
[dependencies]
1111
pyth-sdk-solana = { path = "../", version = "0.4.0" }
12-
solana-program = "1.8.1"
12+
solana-program = "1.8.1, < 1.11" # Currently latest Solana 1.11 crate can't build bpf: https://github.com/solana-labs/solana/issues/26188
1313
bytemuck = "1.7.2"
1414
borsh = "0.9"
1515
borsh-derive = "0.9.0"
1616

1717
[dev-dependencies]
18-
solana-program-test = "1.8.1"
19-
solana-client = "1.8.1"
20-
solana-sdk = "1.8.1"
18+
solana-program-test = "1.8.1, < 1.11"
19+
solana-client = "1.8.1, < 1.11"
20+
solana-sdk = "1.8.1, < 1.11"
2121

2222
[lib]
2323
crate-type = ["cdylib", "lib"]

0 commit comments

Comments
 (0)