Skip to content

Commit e9e4712

Browse files
committed
Merge branch 'fraccaman/sdk-update-account' (#3039)
* origin/fraccaman/sdk-update-account: added changelog sdk: improve update_account method
2 parents 124ef2d + 5241f25 commit e9e4712

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Improve the function to update an enstablished address via the sdk.
2+
([\#3039](https://github.com/anoma/namada/pull/3039))

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)