This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Comply EIP-86 with the new definition #9140
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8d0d33b
Comply EIP-86 with the new CREATE2 opcode
sorpaas f59ba0f
Fix rpc compile
sorpaas 38d4d75
Fix interpreter CREATE/CREATE2 stack pop difference
sorpaas 995c472
Add unreachable! to fix compile
sorpaas 89449ee
Fix instruction_info
sorpaas b4361ae
Fix gas check due to new stack item
sorpaas c3e79be
Add new tests in executive
sorpaas 6ef0684
Fix have_create2 comment
sorpaas 6dda887
Remove all unused references of eip86_transition and block_number
sorpaas 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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,9 +172,9 @@ impl RichRawTransaction { | |
|
||
impl Transaction { | ||
/// Convert `LocalizedTransaction` into RPC Transaction. | ||
pub fn from_localized(mut t: LocalizedTransaction, eip86_transition: u64) -> Transaction { | ||
pub fn from_localized(mut t: LocalizedTransaction, _eip86_transition: u64) -> Transaction { | ||
let signature = t.signature(); | ||
let scheme = if t.block_number >= eip86_transition { CreateContractAddress::FromCodeHash } else { CreateContractAddress::FromSenderAndNonce }; | ||
let scheme = CreateContractAddress::FromSenderAndNonce; | ||
Transaction { | ||
hash: t.hash().into(), | ||
nonce: t.nonce.into(), | ||
|
@@ -206,9 +206,9 @@ impl Transaction { | |
} | ||
|
||
/// Convert `SignedTransaction` into RPC Transaction. | ||
pub fn from_signed(t: SignedTransaction, block_number: u64, eip86_transition: u64) -> Transaction { | ||
pub fn from_signed(t: SignedTransaction, block_number: u64, _eip86_transition: u64) -> Transaction { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
let signature = t.signature(); | ||
let scheme = if block_number >= eip86_transition { CreateContractAddress::FromCodeHash } else { CreateContractAddress::FromSenderAndNonce }; | ||
let scheme = CreateContractAddress::FromSenderAndNonce; | ||
Transaction { | ||
hash: t.hash().into(), | ||
nonce: t.nonce.into(), | ||
|
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.
if it's unused, can we just remove it?