File tree Expand file tree Collapse file tree 8 files changed +24
-16
lines changed
arrow_glacier/vm/instructions
gray_glacier/vm/instructions Expand file tree Collapse file tree 8 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -75,8 +76,6 @@ def generic_create(
75
76
evm .memory , memory_start_position , memory_size
76
77
)
77
78
78
- evm .accessed_addresses .add (contract_address )
79
-
80
79
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
81
80
evm .gas_left -= create_message_gas
82
81
if evm .message .is_static :
@@ -95,6 +94,8 @@ def generic_create(
95
94
push (evm .stack , U256 (0 ))
96
95
return
97
96
97
+ evm .accessed_addresses .add (contract_address )
98
+
98
99
if account_has_code_or_nonce (
99
100
evm .message .block_env .state , contract_address
100
101
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -76,8 +77,6 @@ def generic_create(
76
77
evm .memory , memory_start_position , memory_size
77
78
)
78
79
79
- evm .accessed_addresses .add (contract_address )
80
-
81
80
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
82
81
evm .gas_left -= create_message_gas
83
82
if evm .message .is_static :
@@ -96,6 +95,8 @@ def generic_create(
96
95
push (evm .stack , U256 (0 ))
97
96
return
98
97
98
+ evm .accessed_addresses .add (contract_address )
99
+
99
100
if account_has_code_or_nonce (
100
101
evm .message .block_env .state , contract_address
101
102
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -84,8 +85,6 @@ def generic_create(
84
85
if len (call_data ) > 2 * MAX_CODE_SIZE :
85
86
raise OutOfGasError
86
87
87
- evm .accessed_addresses .add (contract_address )
88
-
89
88
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
90
89
evm .gas_left -= create_message_gas
91
90
if evm .message .is_static :
@@ -104,6 +103,8 @@ def generic_create(
104
103
push (evm .stack , U256 (0 ))
105
104
return
106
105
106
+ evm .accessed_addresses .add (contract_address )
107
+
107
108
if account_has_code_or_nonce (
108
109
evm .message .block_env .state , contract_address
109
110
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -75,8 +76,6 @@ def generic_create(
75
76
evm .memory , memory_start_position , memory_size
76
77
)
77
78
78
- evm .accessed_addresses .add (contract_address )
79
-
80
79
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
81
80
evm .gas_left -= create_message_gas
82
81
if evm .message .is_static :
@@ -95,6 +94,8 @@ def generic_create(
95
94
push (evm .stack , U256 (0 ))
96
95
return
97
96
97
+ evm .accessed_addresses .add (contract_address )
98
+
98
99
if account_has_code_or_nonce (
99
100
evm .message .block_env .state , contract_address
100
101
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -75,8 +76,6 @@ def generic_create(
75
76
evm .memory , memory_start_position , memory_size
76
77
)
77
78
78
- evm .accessed_addresses .add (contract_address )
79
-
80
79
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
81
80
evm .gas_left -= create_message_gas
82
81
if evm .message .is_static :
@@ -95,6 +94,8 @@ def generic_create(
95
94
push (evm .stack , U256 (0 ))
96
95
return
97
96
97
+ evm .accessed_addresses .add (contract_address )
98
+
98
99
if account_has_code_or_nonce (
99
100
evm .message .block_env .state , contract_address
100
101
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -75,8 +76,6 @@ def generic_create(
75
76
evm .memory , memory_start_position , memory_size
76
77
)
77
78
78
- evm .accessed_addresses .add (contract_address )
79
-
80
79
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
81
80
evm .gas_left -= create_message_gas
82
81
if evm .message .is_static :
@@ -95,6 +94,8 @@ def generic_create(
95
94
push (evm .stack , U256 (0 ))
96
95
return
97
96
97
+ evm .accessed_addresses .add (contract_address )
98
+
98
99
if account_has_code_or_nonce (
99
100
evm .message .block_env .state , contract_address
100
101
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -85,8 +86,6 @@ def generic_create(
85
86
if len (call_data ) > 2 * MAX_CODE_SIZE :
86
87
raise OutOfGasError
87
88
88
- evm .accessed_addresses .add (contract_address )
89
-
90
89
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
91
90
evm .gas_left -= create_message_gas
92
91
if evm .message .is_static :
@@ -105,6 +104,8 @@ def generic_create(
105
104
push (evm .stack , U256 (0 ))
106
105
return
107
106
107
+ evm .accessed_addresses .add (contract_address )
108
+
108
109
if account_has_code_or_nonce (
109
110
evm .message .block_env .state , contract_address
110
111
) or account_has_storage (evm .message .block_env .state , contract_address ):
Original file line number Diff line number Diff line change 11
11
12
12
Implementations of the EVM system related instructions.
13
13
"""
14
+
14
15
from ethereum_types .bytes import Bytes0
15
16
from ethereum_types .numeric import U256 , Uint
16
17
@@ -83,8 +84,6 @@ def generic_create(
83
84
if len (call_data ) > 2 * MAX_CODE_SIZE :
84
85
raise OutOfGasError
85
86
86
- evm .accessed_addresses .add (contract_address )
87
-
88
87
create_message_gas = max_message_call_gas (Uint (evm .gas_left ))
89
88
evm .gas_left -= create_message_gas
90
89
if evm .message .is_static :
@@ -103,6 +102,8 @@ def generic_create(
103
102
push (evm .stack , U256 (0 ))
104
103
return
105
104
105
+ evm .accessed_addresses .add (contract_address )
106
+
106
107
if account_has_code_or_nonce (
107
108
evm .message .block_env .state , contract_address
108
109
) or account_has_storage (evm .message .block_env .state , contract_address ):
You can’t perform that action at this time.
0 commit comments