Skip to content

Commit

Permalink
cmd: update to latest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and jrick committed Dec 12, 2022
1 parent 5b6ab6d commit 904a6db
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 446 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
- name: Build
run: go build ./...
- name: Test
Expand Down
12 changes: 0 additions & 12 deletions cmd/movefunds/go.mod

This file was deleted.

167 changes: 0 additions & 167 deletions cmd/movefunds/go.sum

This file was deleted.

19 changes: 10 additions & 9 deletions cmd/movefunds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"io"
"os"

"decred.org/dcrwallet/v3/rpc/jsonrpc/types"
"decred.org/dcrwallet/v3/wallet/txauthor"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/txscript/v4"
"github.com/decred/dcrd/txscript/v4/stdaddr"
"github.com/decred/dcrd/wire"
)

Expand Down Expand Up @@ -167,7 +166,7 @@ func main() {
return
}

addr, err := dcrutil.DecodeAddress(cfg.SendToAddress, params)
addr, err := stdaddr.DecodeAddress(cfg.SendToAddress, params)
if err != nil {
fmt.Printf("failed to parse address %s: %v", cfg.SendToAddress, err)
return
Expand All @@ -180,13 +179,15 @@ func main() {
}

// Create the unsigned transaction.
pkScript, err := txscript.PayToAddrScript(addr)
if err != nil {
fmt.Printf("failed to generate pkScript: %s", err)
return
}
pkScriptVer, pkScript := addr.PaymentScript()

txOuts := []*wire.TxOut{wire.NewTxOut(int64(targetAmount-fee), pkScript)}
txOuts := []*wire.TxOut{
{
Value: int64(targetAmount - fee),
Version: pkScriptVer,
PkScript: pkScript,
},
}
atx, err := txauthor.NewUnsignedTransaction(txOuts, fee, inputSource, nil, params.MaxTxSize)
if err != nil {
fmt.Printf("failed to create unsigned transaction: %s", err)
Expand Down
14 changes: 0 additions & 14 deletions cmd/repaircfilters/go.mod

This file was deleted.

40 changes: 0 additions & 40 deletions cmd/repaircfilters/go.sum

This file was deleted.

15 changes: 0 additions & 15 deletions cmd/sweepaccount/go.mod

This file was deleted.

Loading

0 comments on commit 904a6db

Please sign in to comment.