File tree Expand file tree Collapse file tree 14 files changed +42
-70
lines changed
arrow_glacier/vm/instructions
byzantium/vm/instructions
constantinople/vm/instructions
gray_glacier/vm/instructions
muir_glacier/vm/instructions
spurious_dragon/vm/instructions Expand file tree Collapse file tree 14 files changed +42
-70
lines changed Original file line number Diff line number Diff line change @@ -353,11 +353,9 @@ def call(evm: Evm) -> None:
353
353
354
354
code_address = to
355
355
356
- create_gas_cost = (
357
- Uint (0 )
358
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
359
- else GAS_NEW_ACCOUNT
360
- )
356
+ create_gas_cost = GAS_NEW_ACCOUNT
357
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
358
+ create_gas_cost = Uint (0 )
361
359
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
362
360
message_call_gas = calculate_message_call_gas (
363
361
value ,
Original file line number Diff line number Diff line change @@ -354,11 +354,9 @@ def call(evm: Evm) -> None:
354
354
355
355
code_address = to
356
356
357
- create_gas_cost = (
358
- Uint (0 )
359
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
360
- else GAS_NEW_ACCOUNT
361
- )
357
+ create_gas_cost = GAS_NEW_ACCOUNT
358
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
359
+ create_gas_cost = Uint (0 )
362
360
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
363
361
message_call_gas = calculate_message_call_gas (
364
362
value ,
Original file line number Diff line number Diff line change @@ -274,11 +274,9 @@ def call(evm: Evm) -> None:
274
274
275
275
code_address = to
276
276
277
- create_gas_cost = (
278
- Uint (0 )
279
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
280
- else GAS_NEW_ACCOUNT
281
- )
277
+ create_gas_cost = GAS_NEW_ACCOUNT
278
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
279
+ create_gas_cost = Uint (0 )
282
280
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
283
281
message_call_gas = calculate_message_call_gas (
284
282
value ,
Original file line number Diff line number Diff line change @@ -373,11 +373,9 @@ def call(evm: Evm) -> None:
373
373
374
374
code_address = to
375
375
376
- create_gas_cost = (
377
- Uint (0 )
378
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
379
- else GAS_NEW_ACCOUNT
380
- )
376
+ create_gas_cost = GAS_NEW_ACCOUNT
377
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
378
+ create_gas_cost = Uint (0 )
381
379
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
382
380
message_call_gas = calculate_message_call_gas (
383
381
value ,
Original file line number Diff line number Diff line change @@ -344,11 +344,9 @@ def call(evm: Evm) -> None:
344
344
345
345
code_address = to
346
346
347
- create_gas_cost = (
348
- Uint (0 )
349
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
350
- else GAS_NEW_ACCOUNT
351
- )
347
+ create_gas_cost = GAS_NEW_ACCOUNT
348
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
349
+ create_gas_cost = Uint (0 )
352
350
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
353
351
message_call_gas = calculate_message_call_gas (
354
352
value ,
Original file line number Diff line number Diff line change @@ -353,11 +353,9 @@ def call(evm: Evm) -> None:
353
353
354
354
code_address = to
355
355
356
- create_gas_cost = (
357
- Uint (0 )
358
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
359
- else GAS_NEW_ACCOUNT
360
- )
356
+ create_gas_cost = GAS_NEW_ACCOUNT
357
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
358
+ create_gas_cost = Uint (0 )
361
359
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
362
360
message_call_gas = calculate_message_call_gas (
363
361
value ,
Original file line number Diff line number Diff line change @@ -344,11 +344,9 @@ def call(evm: Evm) -> None:
344
344
345
345
code_address = to
346
346
347
- create_gas_cost = (
348
- Uint (0 )
349
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
350
- else GAS_NEW_ACCOUNT
351
- )
347
+ create_gas_cost = GAS_NEW_ACCOUNT
348
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
349
+ create_gas_cost = Uint (0 )
352
350
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
353
351
message_call_gas = calculate_message_call_gas (
354
352
value ,
Original file line number Diff line number Diff line change @@ -353,11 +353,9 @@ def call(evm: Evm) -> None:
353
353
354
354
code_address = to
355
355
356
- create_gas_cost = (
357
- Uint (0 )
358
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
359
- else GAS_NEW_ACCOUNT
360
- )
356
+ create_gas_cost = GAS_NEW_ACCOUNT
357
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
358
+ create_gas_cost = Uint (0 )
361
359
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
362
360
message_call_gas = calculate_message_call_gas (
363
361
value ,
Original file line number Diff line number Diff line change @@ -344,11 +344,9 @@ def call(evm: Evm) -> None:
344
344
345
345
code_address = to
346
346
347
- create_gas_cost = (
348
- Uint (0 )
349
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
350
- else GAS_NEW_ACCOUNT
351
- )
347
+ create_gas_cost = GAS_NEW_ACCOUNT
348
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
349
+ create_gas_cost = Uint (0 )
352
350
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
353
351
message_call_gas = calculate_message_call_gas (
354
352
value ,
Original file line number Diff line number Diff line change @@ -394,11 +394,9 @@ def call(evm: Evm) -> None:
394
394
) = access_delegation (evm , code_address )
395
395
access_gas_cost += delegated_access_gas_cost
396
396
397
- create_gas_cost = (
398
- Uint (0 )
399
- if is_account_alive (evm .message .block_env .state , to ) or value == 0
400
- else GAS_NEW_ACCOUNT
401
- )
397
+ create_gas_cost = GAS_NEW_ACCOUNT
398
+ if value == 0 or is_account_alive (evm .message .block_env .state , to ):
399
+ create_gas_cost = Uint (0 )
402
400
transfer_gas_cost = Uint (0 ) if value == 0 else GAS_CALL_VALUE
403
401
message_call_gas = calculate_message_call_gas (
404
402
value ,
You can’t perform that action at this time.
0 commit comments