Skip to content

Commit 8bc83f4

Browse files
author
balogh.adam@icloud.com
committed
revert
1 parent 95da561 commit 8bc83f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/opengradient/client/opg_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def ensure_opg_approval(wallet_account: LocalAccount, opg_amount: float) -> Perm
104104
tx_hash = w3.eth.send_raw_transaction(signed.raw_transaction)
105105
receipt = w3.eth.wait_for_transaction_receipt(tx_hash, timeout=120)
106106

107-
if receipt["status"] != 1:
107+
if receipt.status != 1: # type: ignore[attr-defined]
108108
raise RuntimeError(f"Permit2 approval transaction reverted: {tx_hash.hex()}")
109109

110110
allowance_after = token.functions.allowance(owner, spender).call()

0 commit comments

Comments
 (0)