File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package ledger
22
33import (
44 "fmt"
5+
56 "github.com/blinklabs-io/gouroboros/cbor"
67)
78
@@ -222,7 +223,7 @@ func (e *UtxowFailure) Error() string {
222223type UtxoFailure struct {
223224 cbor.StructAsArray
224225 Era uint8
225- Err UtxoFailureError
226+ Err error
226227}
227228
228229func (e * UtxoFailure ) UnmarshalCBOR (data []byte ) error {
@@ -267,7 +268,7 @@ func (e *UtxoFailure) UnmarshalCBOR(data []byte) error {
267268 return fmt .Errorf ("failed to parse UtxoFailure: %s" , err )
268269 }
269270 }
270- e .Err = newErr .(UtxoFailureError )
271+ e .Err = newErr .(error )
271272 return nil
272273}
273274
@@ -276,18 +277,11 @@ func (e *UtxoFailure) Error() string {
276277 return fmt .Sprintf ("UtxoFailure (FromAlonzoUtxoFail (%s))" , e .Err )
277278}
278279
279- type UtxoFailureError interface {
280- error
281- isUtxoFailureError ()
282- }
283-
284280type UtxoFailureErrorBase struct {
285281 cbor.StructAsArray
286282 Type uint8
287283}
288284
289- func (e * UtxoFailureErrorBase ) isUtxoFailureError () {}
290-
291285type BadInputsUtxo struct {
292286 UtxoFailureErrorBase
293287 Inputs []TxIn
You can’t perform that action at this time.
0 commit comments