Skip to content

Commit

Permalink
refactor: hoist
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 26, 2023
1 parent 6583b8c commit e22d183
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ape/managers/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)
from ethpm_types import ConstructorABI, EventABI, HexBytes, MethodABI

from ape.api import ConverterAPI
from ape.api import ConverterAPI, TransactionAPI
from ape.api.address import BaseAddress
from ape.exceptions import ConversionError
from ape.types import AddressType
Expand Down Expand Up @@ -372,8 +372,6 @@ def convert_method_args(
return self.convert(pre_processed_args, tuple)

def convert_method_kwargs(self, kwargs) -> Dict:
from ape.api.transactions import TransactionAPI

fields = TransactionAPI.__fields__

kwargs_to_convert = {k: v for k, v in kwargs.items() if k == "sender" or k in fields}
Expand Down

0 comments on commit e22d183

Please sign in to comment.