Skip to content

Commit

Permalink
rename last occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
trocher committed Mar 11, 2024
1 parent 14785e8 commit 32992ad
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/ethereum/arrow_glacier/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MessageCallGas:
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/berlin/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/byzantium/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/constantinople/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/dao_fork/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/frontier/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/gray_glacier/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/homestead/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/istanbul/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/london/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/muir_glacier/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/paris/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/shanghai/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/spurious_dragon/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ class MessageCallGas:
"""
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed
if not consumed.
"""

cost: Uint
Expand Down
6 changes: 3 additions & 3 deletions src/ethereum/tangerine_whistle/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ class ExtendMemory:
@dataclass
class MessageCallGas:
"""
Define the gas cost and gas given to the sub-context for
Define the gas cost and gas given to the sub-call for
executing the call opcodes.
`cost`: `ethereum.base_types.Uint`
The gas required to execute the call opcode.
`sub_context`: `ethereum.base_types.Uint`
`sub_call`: `ethereum.base_types.Uint`
The portion of gas available to sub-calls that is refundable
if not consumed.
"""

cost: Uint
sub_context: Uint
sub_call: Uint


def charge_gas(evm: Evm, amount: Uint) -> None:
Expand Down

0 comments on commit 32992ad

Please sign in to comment.