15
15
package allegra
16
16
17
17
import (
18
- "fmt "
18
+ "errors "
19
19
20
20
"github.com/blinklabs-io/gouroboros/ledger/common"
21
21
"github.com/blinklabs-io/gouroboros/ledger/shelley"
@@ -68,7 +68,7 @@ func UtxoValidateFeeTooSmallUtxo(
68
68
) error {
69
69
tmpPparams , ok := pp .(* AllegraProtocolParameters )
70
70
if ! ok {
71
- return fmt . Errorf ("pparams are not expected type" )
71
+ return errors . New ("pparams are not expected type" )
72
72
}
73
73
return shelley .UtxoValidateFeeTooSmallUtxo (
74
74
tx ,
@@ -113,7 +113,7 @@ func UtxoValidateValueNotConservedUtxo(
113
113
) error {
114
114
tmpPparams , ok := pp .(* AllegraProtocolParameters )
115
115
if ! ok {
116
- return fmt . Errorf ("pparams are not expected type" )
116
+ return errors . New ("pparams are not expected type" )
117
117
}
118
118
return shelley .UtxoValidateValueNotConservedUtxo (
119
119
tx ,
@@ -131,7 +131,7 @@ func UtxoValidateOutputTooSmallUtxo(
131
131
) error {
132
132
tmpPparams , ok := pp .(* AllegraProtocolParameters )
133
133
if ! ok {
134
- return fmt . Errorf ("pparams are not expected type" )
134
+ return errors . New ("pparams are not expected type" )
135
135
}
136
136
return shelley .UtxoValidateOutputTooSmallUtxo (
137
137
tx ,
@@ -158,7 +158,7 @@ func UtxoValidateMaxTxSizeUtxo(
158
158
) error {
159
159
tmpPparams , ok := pp .(* AllegraProtocolParameters )
160
160
if ! ok {
161
- return fmt . Errorf ("pparams are not expected type" )
161
+ return errors . New ("pparams are not expected type" )
162
162
}
163
163
return shelley .UtxoValidateMaxTxSizeUtxo (
164
164
tx ,
0 commit comments