Comply EIP-86 with the new definition (#9140)
* Comply EIP-86 with the new CREATE2 opcode * Fix rpc compile * Fix interpreter CREATE/CREATE2 stack pop difference * Add unreachable! to fix compile * Fix instruction_info * Fix gas check due to new stack item * Add new tests in executive * Fix have_create2 comment * Remove all unused references of eip86_transition and block_number
This commit is contained in:
@@ -310,12 +310,8 @@ impl EthereumMachine {
|
||||
}
|
||||
|
||||
/// Returns new contract address generation scheme at given block number.
|
||||
pub fn create_address_scheme(&self, number: BlockNumber) -> CreateContractAddress {
|
||||
if number >= self.params().eip86_transition {
|
||||
CreateContractAddress::FromCodeHash
|
||||
} else {
|
||||
CreateContractAddress::FromSenderAndNonce
|
||||
}
|
||||
pub fn create_address_scheme(&self, _number: BlockNumber) -> CreateContractAddress {
|
||||
CreateContractAddress::FromSenderAndNonce
|
||||
}
|
||||
|
||||
/// Verify a particular transaction is valid, regardless of order.
|
||||
|
||||
Reference in New Issue
Block a user