Skip to content

Commit

Permalink
JSON-RPC error: wrapped in RelayErrorResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Jan 13, 2022
1 parent dd93a46 commit 8e1c35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashbotsrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (rpc *FlashbotsRPC) CallWithFlashbotsSignature(method string, privKey *ecds
}

if resp.Error != nil {
return nil, *resp.Error
return nil, fmt.Errorf("%w: %s", ErrRelayErrorResponse, (*resp).Error.Message)
}

return resp.Result, nil
Expand Down

0 comments on commit 8e1c35b

Please sign in to comment.