Skip to content

Commit

Permalink
fix: TypeError (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 29, 2024
1 parent 9d55ce1 commit a6c4808
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions y/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ async def coroutine(
if build:
async with _contract_locks[address]:
# now that we're inside the lock, check and see if another coro populated the cache
if contract := cls.get_instance(address):
return contract
if cache_value := cls.get_instance(address):
return cache_value

# nope, continue
contract.__init_from_abi__(build, owner=owner, persist=persist)
Expand Down Expand Up @@ -490,8 +490,8 @@ async def coroutine(
else:
async with _contract_locks[address]:
# now that we're inside the lock, check and see if another coro populated the cache
if contract := cls.get_instance(address):
return contract
if cache_value := cls.get_instance(address):
return cache_value

# nope, continue
build = {
Expand Down

0 comments on commit a6c4808

Please sign in to comment.