Skip to content

Commit

Permalink
wallet: get correct address for getnewaddress rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonf committed Aug 24, 2018
1 parent b3fd965 commit fb9cee7
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 fb9cee7

Please sign in to comment.