Skip to content

Commit

Permalink
fix: remove get_args
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Oct 25, 2023
1 parent 83f0c6e commit af65c12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ape_safe/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from datetime import datetime
from enum import Enum
from functools import reduce
from typing import Dict, Iterator, List, NewType, Optional, Set, Union, get_args
from typing import Dict, Iterator, List, NewType, Optional, Set, Union

import requests
from ape.contracts import ContractInstance
Expand Down Expand Up @@ -332,10 +332,10 @@ def post_signature(
signer: AddressType,
signature: MessageSignature,
):
if isinstance(safe_tx_or_hash, get_args(SafeTx)):
if isinstance(safe_tx_or_hash, SafeTx):
safe_tx = safe_tx_or_hash
safe_tx_hash = hash_eip712_message(safe_tx).hex()
elif isinstance(safe_tx_or_hash, get_args(SafeTxID)):
else:
safe_tx_hash = safe_tx_or_hash

if not isinstance(safe_tx_hash, str):
Expand Down

0 comments on commit af65c12

Please sign in to comment.