Skip to content

Commit

Permalink
fix: minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fp-crypto committed Oct 27, 2023
1 parent 7804eee commit 75582aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ape_roll/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,12 @@ def call(self, ape_contract: ApeContractInstance, func_name, *args, value=None,
TODO: brownie has some logic for figuring out which overloaded method to use. we should use that here
"""
weirollContract = WeirollContract.createContract(ape_contract)
weiroll_contract = WeirollContract.createContract(ape_contract)

if func_name in contract.functionsByUniqueName:
func = contract.functionsByUniqueName[func_name]
elif func_name in contract.functionsBySignature:
func = contract.functionsBySignature[func_name]
if func_name in weiroll_contract.functionsByUniqueName:
func = weiroll_contract.functionsByUniqueName[func_name]
elif func_name in weiroll_contract.functionsBySignature:
func = weiroll_contract.functionsBySignature[func_name]
else:
raise ValueError(f"Unknown func_name ({func_name}) on {ape_contract}")

Expand Down

0 comments on commit 75582aa

Please sign in to comment.