stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
65 stars 68 forks source link

Update stellar-env-* #75

Closed leighmcculloch closed 2 years ago

leighmcculloch commented 2 years ago

What

Update stellar-env-*.

Why

Keep it updated.

leighmcculloch commented 2 years ago

@sisuresh I might need your insight into what's happening with the failing build. I'm seeing this error:

error[E0599]: no method named `try_into_val` found for struct `soroban_env_common::env_val::EnvVal` in the current scope
  --> /Users/leighmcculloch/.cargo/git/checkouts/soroban-token-contract-5a786b24baaef2de/4a525ea/src/cryptography.rs:25:32
   |
25 |         parameters: parameters.try_into_val(e).unwrap(),
   |                                ^^^^^^^^^^^^ method not found in `soroban_env_common::env_val::EnvVal<Env, RawVal>`

When I update the soroban-token-contract, I see the same thing but the for the examples. It's almost like the examples and token contract repos have a cyclic dependency on each other?

error[E0277]: the trait bound `soroban_sdk::Vec<soroban_env_common::env_val::EnvVal<Env, RawVal>>: From<soroban_env_common::env_val::EnvVal<Env, RawVal>>` is not satisfied
  --> /Users/leighmcculloch/.cargo/git/checkouts/soroban-examples-05106bb550943bdf/6744474/authorization/src/cryptography.rs:42:32
   |
42 |         parameters: parameters.try_into().unwrap(),
   |                                ^^^^^^^^ the trait `From<soroban_env_common::env_val::EnvVal<Env, RawVal>>` is not implemented for `soroban_sdk::Vec<soroban_env_common::env_val::EnvVal<Env, RawVal>>`
   |
leighmcculloch commented 2 years ago

I'm going to close this because I'm not able to resolve it at this time. I assume this will be resolved by moving auth into the SDK.