StoredPayload Detection
Find the hidden reason for a StoredPayload
What does a StoredPayload look like on chain & How to deal with it
If you see a transaction like this, then you may have a StoredPayload:
See the orange text? Although the transaction may say it succeeded, LayerZero may have a StoredPayload blocking the queue of message until dealt with.
Go to the "Logs" tab to see the reason
If there is no reason
string, it could be out of gas. If there is a reason
copy the bytes into a hex-to-string converter to see the reason (example below):
OK! Thats some helpful information - Although we ran into a StoredPayload, we now know the reason: LzReceiver: invalid source sending contract
The error reminds us that we must setTrustedRemote
first on the destination to allow inbound communication from the source sending User Application contract.