Skip to content

Commit

Permalink
Merge pull request #9 from galt-tr/gobt
Browse files Browse the repository at this point in the history
Update to go-bt 0.0.4
  • Loading branch information
mrz1836 authored Dec 1, 2020
2 parents 24d444d + 96d99cf commit d969aa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/bitcoinsv/bsvlog v0.0.0-20181216181007-cb81b076bf2e // indirect
github.com/bitcoinsv/bsvutil v0.0.0-20181216182056-1d77cf353ea9
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/libsv/go-bt v0.0.3
github.com/libsv/go-bt v0.0.4
github.com/stretchr/testify v1.6.1
golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/libsv/go-bt v0.0.3 h1:wuyubNlVQ8bay9jJy5JpolvMxoiwSA/u5y+zMnVrDIE=
github.com/libsv/go-bt v0.0.3/go.mod h1:6/eqZS8F56KztrcUdoYXHFx8ZBr4cg5Hp0jf0cG73J4=
github.com/libsv/go-bt v0.0.4 h1:dFcBC0RsjtvcFEi/OBf6BiVLYqA/vVnD4qw6MO6LbcA=
github.com/libsv/go-bt v0.0.4/go.mod h1:wNTIsmjGBV2cVlTErmblhVy9s+8uX2M4qsst2qEt8e4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func CreateTx(utxos []*Utxo, addresses []*PayToAddress,
if privateKey != nil {

signer := bt.InternalSigner{PrivateKey: privateKey, SigHashFlag: 0}
if err = tx.SignAuto(&signer); err != nil {
if _, err = tx.SignAuto(&signer); err != nil {
return nil, err
}
}
Expand Down

0 comments on commit d969aa2

Please sign in to comment.