solana-labs / example-helloworld

Hello world on Solana
MIT License
900 stars 872 forks source link

Crates `solana-bpf-helloworld` and `solana-program` use different versions of `borsh` lib #266

Closed Tirka closed 3 years ago

Tirka commented 3 years ago

Problem: function solana_program::borsh::get_packed_len doesn't work with types, which implement borsh::shema::BorshSchema.

The reason is that сrates solana-bpf-helloworld and solana-program use different versions of borsh lib.

Possible solutions:

jstarry commented 3 years ago

Thanks @Tirka, a PR to update the Cargo.toml versions would be great if you have the time.

Tirka commented 3 years ago

Done