Skip to content

Commit

Permalink
Merge pull request btcsuite#53 from fyookball/master
Browse files Browse the repository at this point in the history
add prefix to rpc function getnewaddress
  • Loading branch information
cpacia authored Oct 29, 2019
2 parents 13ef23f + 511e2d3 commit 6240058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/legacyrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ func getNewAddress(icmd interface{}, w *wallet.Wallet) (interface{}, error) {
}

// Return the new payment address string.
return addr.EncodeAddress(), nil
return w.ChainParams().CashAddressPrefix + ":" + addr.EncodeAddress(), nil
}

// getRawChangeAddress handles a getrawchangeaddress request by creating
Expand Down

0 comments on commit 6240058

Please sign in to comment.