Skip to content

Commit e486deb

Browse files
committed
fix: dacite from_dict with enum conversion
1 parent 6892819 commit e486deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptomarket/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def get_transaction(self, id: str) -> Transaction:
11411141
:returns: A transaction of the account
11421142
"""
11431143
response = self._get(endpoint=f'wallet/transactions/{id}')
1144-
return from_dict(data_class=Transaction, data=response)
1144+
return from_dict(data_class=Transaction, data=response, config=Config(cast=[Enum]))
11451145

11461146
def check_if_offchain_is_available(
11471147
self,

0 commit comments

Comments
 (0)