janezpodhostnik / flow-py-sdk

Unofficial flow blockchain python sdk
MIT License
35 stars 26 forks source link

get_transaction_result() failing while parsing storefrontv2 events #50

Closed gurd33pS1ngh closed 1 year ago

gurd33pS1ngh commented 1 year ago

get_transaction_result() function in client.py failing if the transaction is liting nft on storefrontv2 , It is observe that, "type" in the events must be string , however listingAvailable event has a some "type" field as dict and it is getting failed to parse.

gurd33pS1ngh commented 1 year ago

adding these lines if type(obj[c.typeKey])!=str or not obj[c.typeKey]: return obj in flow_py_sdk/cadence/decode.py in decode function can solve this problem