Skip to content

Commit

Permalink
fix: replace two leftovers with "bux"
Browse files Browse the repository at this point in the history
  • Loading branch information
wregulski committed Feb 22, 2024
1 parent 70cf3d2 commit 19d1a34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/register_xpub/register_xpub.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ func main() {
keys, _ := xpriv.Generate()

// Create a client
buxClient, _ := walletclient.New(
walletClient, _ := walletclient.New(
walletclient.WithXPriv(keys.XPriv()),
walletclient.WithHTTP("localhost:3003/v1"),
walletclient.WithSignRequest(true),
)

ctx := context.Background()

_ = buxClient.NewXpub(
_ = walletClient.NewXpub(
ctx, keys.XPub().String(), &models.Metadata{"example_field": "example_data"},
)

xpubKey, err := buxClient.GetXPub(ctx)
xpubKey, err := walletClient.GetXPub(ctx)
if err != nil {
fmt.Println(err)
}
Expand Down
2 changes: 1 addition & 1 deletion transports/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func WrapResponseError(res *http.Response) ResponseError {
if err != nil {
// if EOF, then body is empty and we return response status as error message
if !errors.Is(err, io.EOF) {
errorMsg = fmt.Sprintf("bux-server error message can't be decoded. Reason: %s", err.Error())
errorMsg = fmt.Sprintf("spv-wallet error message can't be decoded. Reason: %s", err.Error())
}
errorMsg = res.Status
}
Expand Down

0 comments on commit 19d1a34

Please sign in to comment.