Skip to content

Commit c951492

Browse files
author
Jan Xie
committed
fix account clearing check
1 parent 9ee66fa commit c951492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ethereum/block.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def apply_transaction(tx)
500500

501501
if post_hardfork?(:spurious_dragon)
502502
touched.each do |addr, gas|
503-
if account_exists(addr) && account_is_empty(addr)
503+
if account_is_dead(addr)
504504
# revert GCALLNEWACCOUNT cost first
505505
if gas > 0
506506
apply_tx_refund tx.sender, gas, tx.gasprice

0 commit comments

Comments
 (0)