chore: deps: update to go-jsonrpc 0.1.8

This commit is contained in:
Aayush
2022-09-22 11:44:19 -04:00
parent 93f94d4ee9
commit 6189932bef
7 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -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))
}