Skip to content

Commit

Permalink
fix: only charge fee if account is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
NIC619 committed Jan 29, 2018
1 parent 3a62dce commit e8c0aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm/logic/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,5 @@ def compute_msg_extra_gas(self, computation, gas, to, value):
account_is_empty = state_db.account_is_empty(to)

transfer_gas_fee = constants.GAS_CALLVALUE if value else 0
create_gas_fee = constants.GAS_NEWACCOUNT if not account_is_empty else 0
create_gas_fee = constants.GAS_NEWACCOUNT if account_is_empty else 0
return transfer_gas_fee + create_gas_fee

0 comments on commit e8c0aef

Please sign in to comment.