Skip to content

Commit

Permalink
fix: use u32::max
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Feb 27, 2024
1 parent ab60cf5 commit 0c2cca5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cmd/crates/soroban-test/tests/it/integration/dotenv.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::time::Duration;

use soroban_test::TestEnv;

use super::util::deploy_hello;
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/tests/it/integration/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn deploy_contract(sandbox: &TestEnv, wasm: &Wasm) -> String {
.arg("--fee")
.arg("1000000")
.arg("--instructions")
.arg("10000000000")
.arg(&u32::MAX.to_string())
.arg("--wasm")
.arg(wasm.path())
.arg("--salt")
Expand Down
3 changes: 1 addition & 2 deletions cmd/soroban-cli/src/commands/contract/invoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,7 @@ impl NetworkRunnable for Cmd {
&signers,
&network.network_passphrase,
Some(log_events),
(verbose || very_verbose || self.fee.cost)
.then_some(log_resources),
(verbose || very_verbose || self.fee.cost).then_some(log_resources),
)
.await?;
(res.return_value()?, res.contract_events()?)
Expand Down

0 comments on commit 0c2cca5

Please sign in to comment.