Closed Tirka closed 3 years ago
Problem: function solana_program::borsh::get_packed_len doesn't work with types, which implement borsh::shema::BorshSchema.
solana_program::borsh::get_packed_len
borsh::shema::BorshSchema
The reason is that сrates solana-bpf-helloworld and solana-program use different versions of borsh lib.
solana-bpf-helloworld
solana-program
borsh
Possible solutions:
cargo.toml
[dependencies] borsh = "=0.8.2" borsh-derive = "=0.8.2" solana-program = "=1.7.1"
Thanks @Tirka, a PR to update the Cargo.toml versions would be great if you have the time.
Cargo.toml
Done
Problem: function
solana_program::borsh::get_packed_len
doesn't work with types, which implementborsh::shema::BorshSchema
.The reason is that сrates
solana-bpf-helloworld
andsolana-program
use different versions ofborsh
lib.Possible solutions:
cargo.toml
and make sure both crates use same version ofborsh
:borsh
types fromsolana-program
crate