mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-22 11:48:19 +00:00
Automatically merged updates to draft EIP(s) 3322 (#3411)
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft, Review, or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
This commit is contained in:
parent
1b7b2a2671
commit
07eb837030
@ -27,12 +27,12 @@ Contract accounts gain an unsigned gas refund counter, initially zero.
|
||||
|
||||
Three new opcodes are introduced to manage this state.
|
||||
|
||||
* `SELFGAS` (`0x48`): Pushes the current account's gas refund counter onto the stack.
|
||||
* `SELFGAS` (`0x49`): Pushes the current account's gas refund counter onto the stack.
|
||||
Shares gas pricing with `SELFBALANCE`.
|
||||
* `USEGAS` (`0x49`): Pops `amount` from the stack.
|
||||
* `USEGAS` (`0x4a`): Pops `amount` from the stack.
|
||||
The minimum of `amount` and the current account's gas refund counter is transferred to the execution context's refund counter.
|
||||
Costs `5000` gas.
|
||||
* `STOREGAS` (`0x4a`): Pops `amount` from the stack.
|
||||
* `STOREGAS` (`0x4b`): Pops `amount` from the stack.
|
||||
Costs `5000 + amount` gas.
|
||||
Increases the current account's gas refund counter by `amount`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user