Skip to content

Commit

Permalink
chore: fix next addr naming
Browse files Browse the repository at this point in the history
  • Loading branch information
riverKanies committed Dec 13, 2024
1 parent 604590e commit b90dfbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/wasm/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function run() {
console.log("Balance:", wallet.balance());

// Test address generation
console.log("New address:", wallet.get_new_address());
console.log("New address:", wallet.reveal_next_address());

// handle changeset merge on rust side
const mergedDataString = wallet.take_merged(walletDataString);
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl WalletWrapper {
balance.total().to_sat()
}

pub fn get_new_address(&mut self) -> String {
pub fn reveal_next_address(&mut self) -> String {
let address = self
.wallet
.reveal_next_address(KeychainKind::External);
Expand Down

0 comments on commit b90dfbf

Please sign in to comment.