Skip to content

Commit

Permalink
Remove 15k gas from refund counter instead of deduct it as gas cost
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Aug 2, 2018
1 parent 8f9bb86 commit 23ebc94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EIPS/eip-1283.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ the following logic:
clauses.
* If *original value* is not 0
* If *current value* is 0 (also means that *new value* is not
0), deduct 15000 gas.
0), remove 15000 gas from refund counter. We can prove that
refund counter will never go below 0.
* If *new value* is 0 (also means that *current value* is not
0), add 15000 gas to refund counter.
* If *original value* equals *new value* (this storage slot is
Expand Down

0 comments on commit 23ebc94

Please sign in to comment.