Bug fix: Switch active coin when setting active account

This commit is contained in:
Hanh 2022-06-13 13:54:37 +08:00
parent 22779ddf02
commit 186b165c30
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ async fn main() -> anyhow::Result<()> {
#[post("/set_active?<coin>&<id_account>")]
pub fn set_active(coin: u8, id_account: u32) {
warp_api_ffi::set_active_account(coin, id_account);
warp_api_ffi::set_active(coin);
}
#[post("/new_account", format = "application/json", data = "<seed>")]