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
When a mutable message (constructor or otherwise) is dry-run as an RPC the UI should properly decode the returned value and classify it as error or success.
Please note that there are three different layers of failure:
Something failed on the json rpc level. Usually some programming error or totally invalid input. Bug in js or sce probably.
The dispatchable failed: This means that the contract had no chance to return any decodeble data but rather failed without doing so.
The contract execution finished but the flags contain the revert bit (the least significant bit). In this case the output buffer should be decoded and displayed as an error (just as in case 2).
This issue is about the 3. error layer because I assume the first two are already implemented.
Please note that the output buffer should always be decoded and presented to the user. The tricky part is to check for the revert flag to properly indicate that it is an error.
When a mutable message (constructor or otherwise) is dry-run as an RPC the UI should properly decode the returned value and classify it as error or success.
Please note that there are three different layers of failure:
flags
contain the revert bit (the least significant bit). In this case the output buffer should be decoded and displayed as an error (just as in case 2).This issue is about the 3. error layer because I assume the first two are already implemented.
Please note that the output buffer should always be decoded and presented to the user. The tricky part is to check for the revert flag to properly indicate that it is an error.
@cmichi
polkadot-js/apps#6465
The text was updated successfully, but these errors were encountered: