Describe the bug
When calling a message on a contract via the contract-ui I get a result shown of a dry run. Once the call has been made to the contract the result of the dry run might change as the contract state could have been modified. So the dry run result needs to be reevaluated once a call to a contract has been made. This is currently not the case, so the dry run results are not updated after a contract call, showing outdated results.
To Reproduce
Using the dns examples contract, we can register hashes. First showing a successful dry run for not yet registered hashes, however this result should change once the call to the contract has been made. Check out the video below showing registering on of hashes.
dry run shows success for registering 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
call contract to register hash
call successful
dry run still shows old data, indicating success to register 0xaaa..
call contract to register hash 0xaaa.. again
contract call fails although dry run indicates success => bug
Expected behavior
The dry run results should have been updated and automatically after step 3. above.
Describe the bug When calling a message on a contract via the contract-ui I get a result shown of a dry run. Once the call has been made to the contract the result of the dry run might change as the contract state could have been modified. So the dry run result needs to be reevaluated once a call to a contract has been made. This is currently not the case, so the dry run results are not updated after a contract call, showing outdated results.
To Reproduce Using the
dns examples contract
, we can register hashes. First showing a successful dry run for not yet registered hashes, however this result should change once the call to the contract has been made. Check out the video below showing registering on of hashes.0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0xaaa..
0xaaa..
againExpected behavior
The dry run results should have been updated and automatically after step
3.
above.Screenshots
https://github.com/paritytech/contracts-ui/assets/839848/9e01c0c7-848d-4363-af22-f9a90593f26c