Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
thounyy committed Sep 27, 2024
1 parent 01faa3d commit 68bc024
Show file tree
Hide file tree
Showing 6 changed files with 424 additions and 427 deletions.
2 changes: 1 addition & 1 deletion packages/actions/sources/currency.move
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public fun execute_transfer<C: drop>(
) {
let coin: Coin<C> = mint(executable, multisig, TransferProposal {}, ctx);

let is_executed = false;
let mut is_executed = false;
let mint: &MintAction<C> = executable.action();

if (mint.amount == 0) {
Expand Down
1 change: 0 additions & 1 deletion packages/actions/sources/transfers.move
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use kraken_multisig::{
// === Errors ===

const ETransferNotExecuted: u64 = 0;
const EDifferentLength: u64 = 1;

// === Structs ===

Expand Down
6 changes: 3 additions & 3 deletions packages/actions/sources/treasury.move
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public fun propose_transfer(
treasury_name: String,
coin_types: vector<vector<String>>,
coin_amounts: vector<vector<u64>>,
recipients: vector<address>,
mut recipients: vector<address>,
ctx: &mut TxContext
) {
assert!(coin_amounts.length() == coin_types.length(), EDifferentLength);
Expand Down Expand Up @@ -214,7 +214,7 @@ public fun execute_transfer<C: drop>(
) {
let coin: Coin<C> = spend(executable, multisig, TransferProposal {}, ctx);

let is_executed = false;
let mut is_executed = false;
let spend: &SpendAction = executable.action();

if (spend.coins_amounts_map.is_empty()) {
Expand All @@ -231,7 +231,7 @@ public fun execute_transfer<C: drop>(
}

// step 1(bis): same but from a treasury
public fun propose_pay_treasury(
public fun propose_pay(
multisig: &mut Multisig,
key: String,
description: String,
Expand Down
Loading

0 comments on commit 68bc024

Please sign in to comment.