-
Notifications
You must be signed in to change notification settings - Fork 653
Support various eth_call invocations post 1559 #3317
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
Closed
Closed
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
f5bed91
Added new ExecutionOptions for zero gas price eth_call
4dcc4f4
Changed Call And Restore to separate zero price transactions
9065595
Changes to "Execute" to identify transactions with commit and restore…
5574d5a
Changes to "Execute" to process transactions with commit and restore …
ab32915
Added a new condition for checking maxFee > maxPriorityFee
8883dd4
Fixed tests
6fff2c1
Added and fixed tests
7611928
Added description to the tests
0a412ff
Fixed condition for "insufficient max fee per gas for sender balance"
78a20f7
fixed the reason for the crash of tests
03e0b0e
Fixed eth_call tests
d2fc7ba
fixed eth_estimateGas tests
0385a18
fixed the default gas limit value for eth_call and eth_estimateGas
a4829c2
Added test for checking account balance after successfully executing …
9d8ac63
Added test
c7e8bb2
Removed unnecessary parts of QuickFail (deleting an account)
646834d
The inappropriate test was commented out
394c190
Refactoring
7f46a98
fixed special if-statement for CallAndRestore
78c8f41
fixed the reason for the test failure, refactoring
8652d2c
Merge remote-tracking branch 'origin/master' into changes_in_eth_call
kjazgar 4c62c77
small fix
c91715e
fixup! small fix
7fff105
Behaviour when specifying the gas price and the gas price of type 155…
ac8f321
Added support for automatic recognition of the transaction type in et…
800b083
Get-style error output
9c19612
Removed support for automatic recognition of the transaction type
e1993b2
Fixed eth_call tests
11f7cf4
Fixed eth_estimateGas tests
b3b8739
fixed some tests, added new tests for eth_estimateGas and small refac…
1e323ed
Added JsonConverter for Nullable TxType
cd29e01
Added test case
f831fe1
Added tests for Nullable TxTypeConverter (JSON)
b257240
Nullable TxType
0eac807
fixed outdated tests
77bdd4d
Added support for automati recognition of the transaction type in eth…
5175f3c
Fixed tests and add new test cases
367ab1b
Merge branch 'master' into changes_in_eth_call
kjazgar 5126e27
Merged master and changed tests.
kjazgar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/Nethermind/Nethermind.Core.Test/Json/NullableTxTypeConverterTests.cs
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // Copyright (c) 2021 Demerzel Solutions Limited | ||
| // This file is part of the Nethermind library. | ||
| // | ||
| // The Nethermind library is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU Lesser General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
| // | ||
| // The Nethermind library is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU Lesser General Public License for more details. | ||
| // | ||
| // You should have received a copy of the GNU Lesser General Public License | ||
| // along with the Nethermind. If not, see <http://www.gnu.org/licenses/>. | ||
| // | ||
|
|
||
| using Nethermind.Serialization.Json; | ||
| using NUnit.Framework; | ||
|
|
||
| namespace Nethermind.Core.Test.Json | ||
| { | ||
| [TestFixture] | ||
| public class NullableTxTypeConverterTests : ConverterTestBase<TxType?> | ||
| { | ||
| [TestCase(null)] | ||
| [TestCase((TxType)0)] | ||
| [TestCase((TxType)15)] | ||
| [TestCase((TxType)16)] | ||
| [TestCase((TxType)255)] | ||
| [TestCase(TxType.Legacy)] | ||
| [TestCase(TxType.AccessList)] | ||
| [TestCase(TxType.EIP1559)] | ||
| public void Test_roundtrip(TxType? arg) | ||
| { | ||
| TestConverter(arg, (before, after) => before.Equals(after), new NullableTxTypeConverter()); | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
Do other clients skip validation when we have GasPrice = 0 or when it is set to null in TransactionForRpc?