Skip to content

Commit

Permalink
nit: fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed May 1, 2024
1 parent 59fba76 commit 7c1d83f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uniswap/uniswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def approve(self, token: AddressLike, max_approval: Optional[int] = None) -> Non
tx = self._build_and_send_tx(function)
self.w3.eth.wait_for_transaction_receipt(tx, timeout=6000)

# Add extra sleep to let tx propogate correctly
# Add extra sleep to let tx propagate correctly
time.sleep(1)

def _is_approved(self, token: AddressLike) -> bool:
Expand All @@ -1413,6 +1413,8 @@ def _is_approved(self, token: AddressLike) -> bool:
contract_addr = self._exchange_address_from_token(token)
elif self.version in [2, 3]:
contract_addr = self.router_address
else:
raise ValueError
amount = (
_load_contract_erc20(self.w3, token)
.functions.allowance(self.address, contract_addr)
Expand Down

0 comments on commit 7c1d83f

Please sign in to comment.