Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e324260

Browse files
committed
add assertion to check solved
1 parent 8182b3e commit e324260

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OakSecurityCosmWasmCTF/04-Gram/src/exploit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub mod exploit {
7474

7575
let balance = app.wrap().query_balance(player_addr, DENOM).unwrap();
7676
let profit = balance.amount - player_initial_balance.amount;
77+
assert!(profit > Uint128::zero());
7778
println!("Profit: {}", profit);
7879
}
7980
}

0 commit comments

Comments
 (0)