Skip to content

Add new/missing EIP 1193 and 1474 errors#12

Merged
rekmarks merged 3 commits intomasterfrom
add-new-errors
May 12, 2020
Merged

Add new/missing EIP 1193 and 1474 errors#12
rekmarks merged 3 commits intomasterfrom
add-new-errors

Conversation

@rekmarks
Copy link
Copy Markdown
Member

@rekmarks rekmarks commented May 11, 2020

This adds new/missing EIP 1193 and 1474 errors. Also does some minor cleanup of types and comments.

@rekmarks rekmarks changed the base branch from master to standardize-repo May 11, 2020 20:07
brad-decker
brad-decker previously approved these changes May 11, 2020
invalidParams: (opts?: string | IErrorOptions) => IEthereumRpcError<any>,
methodNotFound: (opts?: string | IErrorOptions) => IEthereumRpcError<any>,
internal: (opts?: string | IErrorOptions) => IEthereumRpcError<any>,
invalidInput: (opts?: ErrorArg) => IEthereumRpcError<any>,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Q] non blocking as it wasn't changed here, why use with this type?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just decided it was better to add the ErrorArg type rather than inlining string | IErrorOptions for every function.

@rekmarks rekmarks force-pushed the standardize-repo branch from 56decd9 to 4e5282e Compare May 11, 2020 22:52
@rekmarks rekmarks changed the base branch from standardize-repo to master May 12, 2020 00:01
@rekmarks rekmarks dismissed brad-decker’s stale review May 12, 2020 00:01

The base branch was changed.

@rekmarks rekmarks requested a review from brad-decker May 12, 2020 00:01
Copy link
Copy Markdown

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

@rekmarks rekmarks merged commit c175c70 into master May 12, 2020
@rekmarks rekmarks deleted the add-new-errors branch May 12, 2020 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants