Skip to content

Commit

Permalink
Merge pull request bcoin-org#587 from braydonf/getnewaddress
Browse files Browse the repository at this point in the history
wallet: get correct address for `getnewaddress` rpc
  • Loading branch information
tuxcanfly authored Aug 24, 2018
2 parents ac0179c + fb9cee7 commit 3e87598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wallet/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class RPC extends RPCBase {

const addr = await wallet.createReceive(name);

return addr.getAddress('string');
return addr.getAddress('string', this.network);
}

async getRawChangeAddress(args, help) {
Expand All @@ -502,7 +502,7 @@ class RPC extends RPCBase {
const wallet = this.wallet;
const addr = await wallet.createChange();

return addr.getAddress('string');
return addr.getAddress('string', this.network);
}

async getReceivedByAccount(args, help) {
Expand Down

0 comments on commit 3e87598

Please sign in to comment.