Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ghareeb-falazi
Copy link
Member

@ghareeb-falazi ghareeb-falazi commented Feb 8, 2022

Previously, whenever a read-only Ethereum SC method invocation fails, a transaction was tried with the same parameters. Now this is changed: if the invocation has any return values, only a read-only method call is tried. If it fails, an error is thrown -32100
- Detect ERRORED SC invocations by checking the TxReceipt's status
- Ensure that a transaction has a receipt (mined) before trying to look at it's status
- Timeout if mining the transaction takes longer than the provided timeout value.
Instead for polling the node for the tx receipt, subscribe to notifications about when new blocks are added and then try to retrieve the receipt
the more general InvokeSmartContractFunctionFailure is now used, which corresponds to -321000 in SCIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants