Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add error for sendRawTransaction and estimateGas #3194

Merged
merged 2 commits into from
Nov 4, 2016
Merged

Add error for sendRawTransaction and estimateGas #3194

merged 2 commits into from
Nov 4, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Nov 4, 2016

Closes #3122

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Nov 4, 2016
@@ -271,6 +272,14 @@ pub fn from_transaction_error(error: EthcoreError) -> Error {
}
}

pub fn from_rlp_error(error: DecoderError) -> Error {
Copy link
Contributor

Choose a reason for hiding this comment

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

why are so many of the functions in the error module suffixed with error? it makes it a bit awkward when calling (error::from_rlp_error() vs error::from_rlp) as well as being inconsistent with other functions in the module, e.g. error::signer_disabled

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make an issue to cleanup this error naming?

Copy link
Collaborator

Choose a reason for hiding this comment

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

error::from_rlp looks time as error is being converted from Rlp

Copy link
Contributor

Choose a reason for hiding this comment

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

right, it should be error::bad_rlp or something like that

Copy link
Contributor

Choose a reason for hiding this comment

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

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. B0-patch and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 4, 2016
@arkpar arkpar merged commit 501b2cd into master Nov 4, 2016
@gavofyork gavofyork deleted the rpc-errors branch November 4, 2016 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants