Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
remove unused error funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
kilic committed Mar 2, 2020
1 parent a0dd8c8 commit 6c479c7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions error.go
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
package eip

import "errors"

var (
GAS_METERING_MODE = false
)

func _err(msg string) error {
return errors.New(msg)
}

func _e(msgOrErr interface{}) ([]byte, error) {
switch val := msgOrErr.(type) {
case string:
return zero, errors.New(val)
case error:
return zero, val
default:
return zero, errors.New(ERR_UNKNOWN)
}
}

func apiDecodingErr(msgOrErr interface{}) ([]byte, error) {
return _e(msgOrErr)
}

func apiExecErr(msgOrErr interface{}) ([]byte, error) {
return _e(msgOrErr)
}

const (
// base field
ERR_BASE_FIELD_MODULUS_LENGTH_NOT_ENOUGH_BYTE = "Input is not long enough to get modulus length"
Expand Down

0 comments on commit 6c479c7

Please sign in to comment.