Skip to content

Commit

Permalink
wip - misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Dec 21, 2023
1 parent b35a098 commit ce4ed82
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions core/src/modules/donations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ impl ModuleT for Donations {
runtime().notify(UserNotification::info(format!("{CLIPBOARD_TEXT} {}", i18n("Copied to clipboard"))).short())
}

ui.label(" ");

})
.with_footer(|_this,ui| {
if ui.large_button("Close").clicked() {
Expand Down
8 changes: 5 additions & 3 deletions core/src/modules/wallet_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ impl ModuleT for WalletCreate {
}
State::PaymentSecret => {


Panel::new(self)
.with_caption("Payment & Recovery Password")
.with_back(|this| {
Expand All @@ -582,7 +581,6 @@ impl ModuleT for WalletCreate {
let mut submit = false;
let mut change = false;


ui.checkbox(&mut this.context.enable_payment_secret, i18n("Enable optional BIP39 passphrase"));

if this.context.enable_payment_secret {
Expand Down Expand Up @@ -730,6 +728,8 @@ impl ModuleT for WalletCreate {
let wallet_secret = Secret::from(args.wallet_secret);
let payment_secret = args.enable_payment_secret.then_some(Secret::from(args.payment_secret));

wallet.clone().batch().await?;

let wallet_args = WalletCreateArgs::new(
args.wallet_name.is_not_empty().then_some(args.wallet_name),
args.wallet_filename.is_not_empty().then_some(args.wallet_filename),
Expand Down Expand Up @@ -767,7 +767,9 @@ impl ModuleT for WalletCreate {
// payment_secret.clone(),
);

let account_descriptor = wallet.clone().accounts_create(wallet_secret, account_create_args).await?;
let account_descriptor = wallet.clone().accounts_create(wallet_secret.clone(), account_create_args).await?;

wallet.clone().flush(wallet_secret).await?;

// let WalletCreateResponse { mnemonic, wallet_descriptor: _, account_descriptor, storage_descriptor: _ } =
// wallet.wallet_create(wallet_secret, wallet_args, prv_key_data_args, account_args).await?;
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct Release {
pub async fn check_version() -> Result<()> {
let current_version = crate::app::VERSION;

let url = "https://api.github.com/repos/kaspanet/kaspad/releases/latest";
let url = "https://api.github.com/repos/kaspanet/rusty-kaspa/releases/latest";
let response = Request::new(url)
.with_user_agent(format!("kaspa-ng {current_version} software update check"))
.get_json::<serde_json::Value>()
Expand Down
12 changes: 7 additions & 5 deletions resources/i18n/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"fil": "Filipino",
"pa": "Panjabi",
"fa": "Farsi",
"sv": "Swedish",
"fi": "Finnish",
"es": "Español",
"lt": "Lithuanian",
"uk": "Ukrainian",
"sv": "Swedish",
"af": "Afrikaans",
"et": "Esti",
"en": "English",
Expand Down Expand Up @@ -67,12 +67,13 @@
"sv": {},
"fi": {},
"es": {},
"lt": {},
"uk": {},
"lt": {},
"af": {},
"et": {},
"en": {
"Very weak": "Very weak",
"Activate custom daemon arguments": "Activate custom daemon arguments",
"Change": "Change",
"Mainnet (Main Kaspa network)": "Mainnet (Main Kaspa network)",
"Network Tx/s": "Network Tx/s",
Expand All @@ -94,6 +95,7 @@
"Show Grid": "Show Grid",
"None": "None",
"Enables custom arguments for the Rusty Kaspa daemon": "Enables custom arguments for the Rusty Kaspa daemon",
"Enable screen capture": "Enable screen capture",
"Type": "Type",
"Memory": "Memory",
"Blocks": "Blocks",
Expand Down Expand Up @@ -163,10 +165,10 @@
"Good": "Good",
"Secret is too weak": "Secret is too weak",
"DAA": "DAA",
"Signature Type": "Signature Type",
"Network": "Network",
"Time Offset:": "Time Offset:",
"Net Rx/s": "Net Rx/s",
"Network": "Network",
"Signature Type": "Signature Type",
"gRPC Tx": "gRPC Tx",
"Dependencies": "Dependencies",
"Active p2p Peers": "Active p2p Peers",
Expand All @@ -181,8 +183,8 @@
"Continue": "Continue",
"WASM SDK for JavaScript and TypeScript": "WASM SDK for JavaScript and TypeScript",
"Kaspa p2p Node": "Kaspa p2p Node",
"Enable experimental features": "Enable experimental features",
"p2p Tx/s": "p2p Tx/s",
"Enable experimental features": "Enable experimental features",
"gRPC User Tx": "gRPC User Tx",
"NPM Modules for NodeJS": "NPM Modules for NodeJS",
"wRPC Encoding:": "wRPC Encoding:",
Expand Down

0 comments on commit ce4ed82

Please sign in to comment.