Open AnderUstarroz opened 2 years ago
Great research! Being able to use getSignaturesForAddress()
to get all transactions + memos at once is a huge performance boost vs having to query every single transaction individually. Hopefully they will fix this issue.
A lot of text here. Is the issue just that provider.connection.getSignaturesForAddress
somehow drops the memo information passed back by the RPC call?
Happy to review a PR that fixes. It's also worth noting that connection.getSignaturesForAddress
is a web3 library function, so the issue could lay there. 🤷
Just realised that Memo program doesn't seem to work properly in Anchor transactions.
For instance a normal SOL transfer instruction + Memo:
Will display the correct Memo "Hello world!" when calling
getSignaturesForAddress()
:But the corresponding anchor program transaction doesn't display the memo when calling
getSignaturesForAddress()
:Testing the anchor program:
Here memo is not displayed:
Which is strange specially considering that the memo was successfully added and can be seen by fetching the transaction:
Logs: