You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to turn meta into a dict using loads(response.transaction.meta.to_json()) and only then could I access the proper token balances.
Even if I print the objects directly they print the same value, and even if I do
response.transaction.meta.post_token_balances == response.transaction.meta.pre_token_balances it returns True
Am I tripping?
The text was updated successfully, but these errors were encountered:
I'm saying that the received object is correct, but when you subscript into
the OBJECT, A wrong value is returned.
as if:
```
obj = {
'1': 'one',
'2', 'two'
}
print(obj['1'])
'two'
```
So let's say i fetch a transaction:
Then I print the transaction meta and I get:
then I do this:
They both return the pre balances value
I had to turn meta into a dict using
loads(response.transaction.meta.to_json())
and only then could I access the proper token balances.Even if I print the objects directly they print the same value, and even if I do
response.transaction.meta.post_token_balances == response.transaction.meta.pre_token_balances it returns True
Am I tripping?
The text was updated successfully, but these errors were encountered: