Skip to content

Commit

Permalink
Merge pull request #7 from gmove-io/test/coverage
Browse files Browse the repository at this point in the history
🧪 test: currency module
  • Loading branch information
thounyy authored Jul 16, 2024
2 parents 984c47d + 1b03bf0 commit d2a2997
Show file tree
Hide file tree
Showing 5 changed files with 466 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ build
node_modules
bun.lockb
Move.lock
.idea
.idea
.trace
2 changes: 1 addition & 1 deletion package/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Thouny ([email protected])", "Jose ([email protected])"]
published-at = "0x2eac5dd46537bf961f931f958a104a99ec6328f0de646ad2d08127fd0b31566e"

[dependencies]
Sui = { override = true, git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
Sui = { override = true, git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "testnet" }
Kiosk = { git = "https://github.com/MystenLabs/apps.git", subdir = "kiosk", rev = "testnet" }

# [dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions package/sources/proposals/currency.move
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module kraken::currency {
multisig_addr: multisig.addr(),
treasury_cap
};

transfer::transfer(treasury_lock, multisig.addr());
}

Expand Down Expand Up @@ -283,6 +284,7 @@ module kraken::currency {

public fun destroy_update<W: drop>(executable: &mut Executable, witness: W) {
let Update { name, symbol, description, icon_url } = executable.remove_action(witness);
//@dev Future guard - impossible to trigger now
assert!(name.is_none() && symbol.is_none() && description.is_none() && icon_url.is_none(), EUpdateNotExecuted);
}
}
Loading

0 comments on commit d2a2997

Please sign in to comment.