chore: deps: update to go-jsonrpc 0.1.8
This commit is contained in:
+4
-4
@@ -11,19 +11,19 @@ const (
|
||||
|
||||
type ErrOutOfGas struct{}
|
||||
|
||||
func (e ErrOutOfGas) Error() string {
|
||||
func (e *ErrOutOfGas) Error() string {
|
||||
return "call ran out of gas"
|
||||
}
|
||||
|
||||
type ErrActorNotFound struct{}
|
||||
|
||||
func (e ErrActorNotFound) Error() string {
|
||||
func (e *ErrActorNotFound) Error() string {
|
||||
return "actor not found"
|
||||
}
|
||||
|
||||
var RPCErrors = jsonrpc.NewErrors()
|
||||
|
||||
func init() {
|
||||
RPCErrors.Register(EOutOfGas, new(ErrOutOfGas))
|
||||
RPCErrors.Register(EActorNotFound, new(ErrActorNotFound))
|
||||
RPCErrors.Register(EOutOfGas, new(*ErrOutOfGas))
|
||||
RPCErrors.Register(EActorNotFound, new(*ErrActorNotFound))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user