Skip to content

Commit

Permalink
updated 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drspacemn committed Jan 30, 2024
1 parent c9731e2 commit cecc61f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scarb 2.4.4
scarb 2.5.0
starknet-foundry 0.16.0
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2023_10"

[dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.16.0" }
starknet = "2.4.4"
starknet = "2.5.0"

[[target.starknet-contract]]
casm = true
2 changes: 2 additions & 0 deletions tests/test_contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ fn test_cannot_increase_balance_with_zero_value() {

let safe_dispatcher = IHelloStarknetSafeDispatcher { contract_address };

#[feature("safe_dispatcher")]
let balance_before = safe_dispatcher.get_balance().unwrap();
assert(balance_before == 0, 'Invalid balance');

#[feature("safe_dispatcher")]
match safe_dispatcher.increase_balance(0) {
Result::Ok(_) => panic_with_felt252('Should have panicked'),
Result::Err(panic_data) => {
Expand Down

0 comments on commit cecc61f

Please sign in to comment.