From af8f5f0b69f1c359991d12c7708804fe8dd1f944 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 31 Oct 2014 14:43:14 +0100 Subject: ethstate => state --- ethstate/errors.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 ethstate/errors.go (limited to 'ethstate/errors.go') diff --git a/ethstate/errors.go b/ethstate/errors.go deleted file mode 100644 index d5d7db86b..000000000 --- a/ethstate/errors.go +++ /dev/null @@ -1,23 +0,0 @@ -package ethstate - -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} -} -- cgit v1.2.3