-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NTRN-142] feat: enhance contract failure with error #352
[NTRN-142] feat: enhance contract failure with error #352
Conversation
https://github.com/neutron-org/neutron-tests/actions/runs/6823402494 Test run agaist the The test run checks whether the feature breaks something in the code. For feature testing please refer to the "How to test this code" section and make the test manually. |
task: https://hadronlabs.atlassian.net/browse/NTRN-142
This PR:
sudo._contract_address
,sudo.failure_id
andsudo.error
events emission on failed Sudo calls;AddressFailure
method tocontractmanager
'sKeeper
which returns a single failure by given contract address and failure ID;Error
field tocontractmanager
'sFailure
storage item which contains redacted error occurred on a Sudo call;neutrond q contractmanager failure-details [address] [failure-id]
CLI query which returns full error message related to a failure by given contract address and failure ID. The query retrieves the error message from events emitted on failed Sudo.How to test this code:
interchaintx.test.ts
outside docker:neutrond q contractmanager failures
and see 5 stored failures with redacted errors like codespace: wasm, code: 5;neutrond q contractmanager failure-details neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0 1
(also for2
,3
,4
and5
failure ID) and see the original error messages.