-
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
Handling data
and input
fields in TransactionRequest
and CallRequest
#1096
Merged
sorpaas
merged 11 commits into
polkadot-evm:master
from
moonbeam-foundation:ahmad-fix-data-field-duplicated
Jul 18, 2023
Merged
Handling data
and input
fields in TransactionRequest
and CallRequest
#1096
sorpaas
merged 11 commits into
polkadot-evm:master
from
moonbeam-foundation:ahmad-fix-data-field-duplicated
Jul 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User @ahmadkaouk, please sign the CLA here. |
tgmichel
approved these changes
Jul 4, 2023
koushiro
reviewed
Jul 4, 2023
koushiro
reviewed
Jul 4, 2023
koushiro
reviewed
Jul 4, 2023
koushiro
reviewed
Jul 4, 2023
koushiro
reviewed
Jul 18, 2023
Comment on lines
+21
to
25
use crate::types::{deserialize_data_or_input, Bytes}; | ||
use ethereum::AccessListItem; | ||
use ethereum_types::{H160, H256, U256}; | ||
use serde::Deserialize; | ||
|
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.
Suggested change
use crate::types::{deserialize_data_or_input, Bytes}; | |
use ethereum::AccessListItem; | |
use ethereum_types::{H160, H256, U256}; | |
use serde::Deserialize; | |
use ethereum::AccessListItem; | |
use ethereum_types::{H160, H256, U256}; | |
use serde::Deserialize; | |
use crate::types::{deserialize_data_or_input, Bytes}; | |
koushiro
approved these changes
Jul 18, 2023
sorpaas
approved these changes
Jul 18, 2023
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.
Our project starts to smell Microsoft Windows..
noandrea
pushed a commit
to moonbeam-foundation/frontier
that referenced
this pull request
Aug 28, 2023
…equest` (polkadot-evm#1096) * Update deserializing data and input fields in TransactionRequest * Custom deserializing for data and input in CallRequest * Manually implement Deserialize for TransactionRequest and CallRequest * Add some unit test for the custom deserialization * add functional tests * fix formatting * deserializer for aliased fields * custom deserializer for data and input fields in TransactionRequest * fix formatting * update functional test * refactor code and fix formatting --------- Co-authored-by: tgmichel <telmo@moonsonglabs.com>
Closed
37 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refines the handling of
data
andinput
fields in TransactionRequest and CallRequest. Previously, provision of both fields resulted in errors.Key updates in this PR:
data
andinput
fields no longer throw errors.data
andinput
fields differ, an error is returned to prevent ambiguity.input
is provided, its value is used fordata
.