Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func processInputs(inXputs []XPut, geneInputs []*transaction.TransactionInput) (
// https://github.com/libsv/go-bt/pull/133
// only a problem for input scripts

parts, err := script.DecodeScript(gInScript)
parts, err := script.DecodeScript(gInScript, script.DecodeOptionsParseOpReturn)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion bpu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestDecodeParts(t *testing.T) {
gene, err := transaction.NewTransactionFromHex(testnetInvalidOpcode)
assert.Nil(t, err)
scr := gene.Outputs[0].LockingScript
parts, err := script.DecodeScript(*scr)
parts, err := script.DecodeScript(*scr, script.DecodeOptionsParseOpReturn)
assert.Nil(t, err)
assert.Equal(t, 999640, len(parts))
}
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/bitcoinschema/go-bpu

go 1.24.0

toolchain go1.24.1
go 1.24.3

require (
github.com/bsv-blockchain/go-sdk v1.1.27
Expand All @@ -13,6 +11,8 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.35.0 // indirect
golang.org/x/crypto v0.37.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/bsv-blockchain/go-sdk => github.com/b-open-io/go-sdk v1.1.25-0.20250520163347-a6ea0e8b256c
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/bsv-blockchain/go-sdk v1.1.27 h1:N7IGPvOLh4YpMGJLGmPj+6PabwI06x8tX4ZJ5u4rrp4=
github.com/bsv-blockchain/go-sdk v1.1.27/go.mod h1:d0HXzhHy21t+7z+LBpDhGyJSBJb8S5HiAmHsBtRKddQ=
github.com/b-open-io/go-sdk v1.1.25-0.20250520163347-a6ea0e8b256c h1:5jTSWJnushSEW+WTJ/n4vcYEkrfB9DNq+kahJbSLsrk=
github.com/b-open-io/go-sdk v1.1.25-0.20250520163347-a6ea0e8b256c/go.mod h1:8YTJF5LuTRzSYNPIdi5xv2FBwLjOytwzaYkXkJn/doI=
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/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand All @@ -8,8 +8,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
2 changes: 1 addition & 1 deletion xput.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (x *XPut) fromScript(config ParseConfig, scrpt *script.Script, idx uint8) e

if scrpt != nil {

parts, err := script.DecodeScript(*scrpt)
parts, err := script.DecodeScript(*scrpt, script.DecodeOptionsParseOpReturn)
if err != nil {
return err
}
Expand Down
Loading