Skip to content

Commit

Permalink
add makefile for cosmwasm ctf
Browse files Browse the repository at this point in the history
  • Loading branch information
minaminao committed Jun 22, 2024
1 parent 543e63b commit 896528a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OakSecurityCosmWasmCTF/01-Mjolnir/src/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub mod exploit {
let cw_template_id = app.store_code(challenge_contract());

// init contract
let msg = InstantiateMsg { count: 1i32 };
let msg = InstantiateMsg {};
let contract_addr = app
.instantiate_contract(
cw_template_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub mod tests {
let cw_template_id = app.store_code(challenge_contract());

// init contract
let msg = InstantiateMsg { count: 1i32 };
let msg = InstantiateMsg {};
let contract_addr = app
.instantiate_contract(
cw_template_id,
Expand Down
6 changes: 6 additions & 0 deletions src/OakSecurityCosmWasmCTF/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test:
cd 01-* && cargo test
cd 02-* && cargo test --release
cd 03-* && cargo test
cd 04-* && cargo test
cd 05-* && cargo test

0 comments on commit 896528a

Please sign in to comment.