diff --git a/gcs/builder/builder.go b/gcs/builder/builder.go index bc7f1da..5235d5a 100644 --- a/gcs/builder/builder.go +++ b/gcs/builder/builder.go @@ -191,6 +191,10 @@ func (b *GCSBuilder) AddScript(script []byte) *GCSBuilder { // Ignore errors and add pushed data, if any data, _ := txscript.PushedData(script) + if len(data) == 0 { + return b + } + return b.AddEntries(data) }