This PR adds an additional check on the truthiness of txnReceipt.events in getOperationResults function and throws an error with a message such as "no events found in transaction [TXN_HASH], are you sure it is a ContractReceipt from a VerificationGateway.processBundle transaction?", when there are no events found.
How can these changes be manually tested?
You can test these changes by running the existing test suite, which will include the new test case for this change.
Does this PR resolve or contribute to any issues?
This PR resolves the issue #563
Checklist
[x] I have manually tested these changes
[ ] Post a link to the PR in the group chat
Guidelines
If your PR is not ready, mark it as a draft
The resolve conversation button is for reviewers, not authors
What is this PR doing?
This PR adds an additional check on the truthiness of txnReceipt.events in getOperationResults function and throws an error with a message such as "no events found in transaction [TXN_HASH], are you sure it is a ContractReceipt from a VerificationGateway.processBundle transaction?", when there are no events found.
How can these changes be manually tested?
You can test these changes by running the existing test suite, which will include the new test case for this change.
Does this PR resolve or contribute to any issues?
This PR resolves the issue #563
Checklist
Guidelines
resolve conversation
button is for reviewers, not authors