-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix split validation #2568
Fix split validation #2568
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
for _, stylusArch := range stylusArchs { | ||
if stylusArch != "wavm" && stylusArch != runtime.GOARCH && stylusArch != "mock" { | ||
return fmt.Errorf("unsupported stylus architecture: %v", stylusArch) | ||
if err := c.client.CallContext(ctx, &stylusArchs, server_api.Namespace+"_stylusArchs"); err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd favor checking the error message here to prevent network errors from being caught here. In fact, I think we can probably downcast this into a type with the JSON-RPC error code, and there's a specific error code for a method not existing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.