20 lines
412 B
Go
20 lines
412 B
Go
|
package fee
|
||
|
|
||
|
import (
|
||
|
rawerr "errors"
|
||
|
|
||
|
abci "github.com/tendermint/abci/types"
|
||
|
"github.com/tendermint/basecoin/errors"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
errInsufficientFees = rawerr.New("Insufficient Fees")
|
||
|
)
|
||
|
|
||
|
func ErrInsufficientFees() errors.TMError {
|
||
|
return errors.WithCode(errInsufficientFees, abci.CodeType_BaseInvalidInput)
|
||
|
}
|
||
|
func IsInsufficientFeesErr(err error) bool {
|
||
|
return errors.IsSameError(errInsufficientFees, err)
|
||
|
}
|