Closed kkonevets closed 2 years ago
As discussed elsewhere, adding this to your Cargo.toml
will help:
[dependencies]
solana-sdk = "=1.7.8"
solana-program = "=1.7.8"
solana-program-test = "=1.7.8"
solana-frozen-abi = "=1.7.8"
solana-frozen-abi-macro = "=1.7.8"
The reason we still use solana-sdk
1.7.8 is because Anchor framework (the eDSL) has a dependency on =1.7.8
(it doesn’t allow newer versions), and the multisig program uses Anchor framwork, and the CLI tool depends on that to build transactions ...
The actual reason my initial Cargo.toml
did not compile was that I didn't prefix version with =
like in =1.7.8
Can't build hello world example using solido repo as external repo https://github.com/kkonevets/solexamp It uses latest solana-program-1.10.8 instead of solana-program-1.7.8 from your patch. Specifying dependencies does not help
[Update] My original
Cargo.toml
was:So, delete
Cargo.lock
, add solana-program dependency with=
sign ("=1.7.8") and it will compile