aboutsummaryrefslogtreecommitdiffstats
path: root/state/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'state/errors.go')
-rw-r--r--state/errors.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/state/errors.go b/state/errors.go
deleted file mode 100644
index 5a847d38b..000000000
--- a/state/errors.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package state
-
-import (
- "fmt"
- "math/big"
-)
-
-type GasLimitErr struct {
- Message string
- Is, Max *big.Int
-}
-
-func IsGasLimitErr(err error) bool {
- _, ok := err.(*GasLimitErr)
-
- return ok
-}
-func (err *GasLimitErr) Error() string {
- return err.Message
-}
-func GasLimitError(is, max *big.Int) *GasLimitErr {
- return &GasLimitErr{Message: fmt.Sprintf("GasLimit error. Max %s, transaction would take it to %s", max, is), Is: is, Max: max}
-}