Skip to content

Commit ff32606

Browse files
Gianmarco FraccaroliGianmarco Fraccaroli
authored andcommitted
sdk: improve update_account method
1 parent 61a0759 commit ff32606

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

crates/sdk/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,17 @@ pub trait Namada: Sized + MaybeSync + MaybeSend {
282282
}
283283

284284
/// Make a TxUpdateAccount builder from the given minimum set of arguments
285-
fn new_update_account(&self, addr: Address) -> args::TxUpdateAccount {
285+
fn new_update_account(
286+
&self,
287+
addr: Address,
288+
public_keys: Vec<common::PublicKey>,
289+
threshold: u8,
290+
) -> args::TxUpdateAccount {
286291
args::TxUpdateAccount {
287292
addr,
288293
vp_code_path: None,
289-
public_keys: vec![],
290-
threshold: None,
294+
public_keys,
295+
threshold: Some(threshold),
291296
tx_code_path: PathBuf::from(TX_UPDATE_ACCOUNT_WASM),
292297
tx: self.tx_builder(),
293298
}

0 commit comments

Comments
 (0)