Skip to content

Commit

Permalink
Update soroban-env-* deps (stellar#1140)
Browse files Browse the repository at this point in the history
### What
Update soroban-env-* deps.

### Why
Keep the SDK updated.
  • Loading branch information
leighmcculloch authored Nov 9, 2023
1 parent 65a47c7 commit 469844e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ soroban-token-sdk = { version = "20.0.0-rc2", path = "soroban-token-sdk" }
[workspace.dependencies.soroban-env-common]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "2674d867d7c6aa4212abab05ff30e5804ff1db90"
rev = "6d26ca68170ecf9d19b8c55bfcc157a1ad62b7e9"

[workspace.dependencies.soroban-env-guest]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "2674d867d7c6aa4212abab05ff30e5804ff1db90"
rev = "6d26ca68170ecf9d19b8c55bfcc157a1ad62b7e9"

[workspace.dependencies.soroban-env-host]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "2674d867d7c6aa4212abab05ff30e5804ff1db90"
rev = "6d26ca68170ecf9d19b8c55bfcc157a1ad62b7e9"

[workspace.dependencies.stellar-strkey]
version = "0.0.7"
Expand Down
2 changes: 1 addition & 1 deletion soroban-sdk/src/tests/prng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn test_prng_gen_range_u64() {
}

#[test]
#[should_panic(expected = "low > high")]
#[should_panic(expected = "Error(Value, InvalidInput)")]
fn test_prng_gen_range_u64_panic_on_invalid_range() {
let e = Env::default();
let id = e.register_contract(None, TestPrngContract);
Expand Down
1 change: 1 addition & 0 deletions soroban-sdk/src/tests/proptest_val_cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ proptest! {
#![proptest_config(ProptestConfig::with_cases(10000))]

#[test]
#[ignore] // TODO: https://github.com/stellar/rs-soroban-sdk/issues/1141
fn test(
rawval_proto_1 in arb::<<Val as SorobanArbitrary>::Prototype>(),
rawval_proto_2 in arb::<<Val as SorobanArbitrary>::Prototype>(),
Expand Down
11 changes: 9 additions & 2 deletions soroban-sdk/src/testutils/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,15 @@ mod tests {
for _ in 0..100 {
rng.fill_bytes(&mut rng_data);
let mut unstructured = Unstructured::new(&rng_data);
let input = T::Prototype::arbitrary(&mut unstructured).expect("SorobanArbitrary");
let _val: T = input.into_val(&env);
loop {
match T::Prototype::arbitrary(&mut unstructured) {
Ok(input) => {
let _val: T = input.into_val(&env);
break;
}
Err(_) => {}
}
}
}
}

Expand Down

0 comments on commit 469844e

Please sign in to comment.