Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
use httpClient for WalletSignPost
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Apr 25, 2018
1 parent abbeebe commit 52a2d32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/siac/walletcmd.go
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/modules/wallet"
"github.com/NebulousLabs/Sia/node/api"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/entropy-mnemonics"
)
Expand Down Expand Up @@ -495,9 +494,7 @@ func walletsigncmd(txnJSON, toSignJSON string) {
}

// try API first
params, _ := json.Marshal(api.WalletSignPOSTParams{Transaction: txn, ToSign: toSign})
var wspr api.WalletSignPOSTResp
err = postResp("/wallet/sign", string(params), &wspr)
wspr, err := httpClient.WalletSignPost(txn, toSign)
if err == nil {
txn = wspr.Transaction
} else {
Expand Down

0 comments on commit 52a2d32

Please sign in to comment.