Skip to content

Commit

Permalink
ABC: return same from OpcodeAPI's as_opcode() as from Opcode.
Browse files Browse the repository at this point in the history
99.99% cargo-culting.

I don't understand the purpose of this structuring, but the function
signatures don't match, and this is the only permutation I could
find between OpcodeAPI, Opcode and FRONTIER_OPCODES that stops
producing an error when running `tox`.

Haven't run actual tests yet.
  • Loading branch information
veox committed Dec 6, 2019
1 parent a771994 commit 3f33ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def __call__(self, computation: 'ComputationAPI') -> None:
def as_opcode(cls: Type[T],
logic_fn: Callable[['ComputationAPI'], None],
mnemonic: str,
gas_cost: int) -> Type[T]:
gas_cost: int) -> T:
"""
Class factory method for turning vanilla functions into Opcode classes.
"""
Expand Down

0 comments on commit 3f33ac8

Please sign in to comment.