However, the python SDK is failing because get_transaction_metadata calls _get_resource function, which fails at the assert len(rsp) == 1 condition. Fixing this by calling _get_collection instead of _get_resource. I also renamed _list_collection to _get_collection because I think it makes more sense.
get_transaction_metadata returns a list, not a single item. For example, running
{:x, 2; :y, 3}
query produces a list of two items:However, the python SDK is failing because
get_transaction_metadata
calls_get_resource
function, which fails at theassert len(rsp) == 1
condition. Fixing this by calling _get_collection instead of _get_resource. I also renamed _list_collection to _get_collection because I think it makes more sense.