We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d2296 commit 62191a7Copy full SHA for 62191a7
crates/ink/codegen/src/generator/dispatch.rs
@@ -786,12 +786,12 @@ impl Dispatch<'_> {
786
&& ::ink::is_result_err!(result);
787
788
// no need to push back results: transaction gets reverted anyways
789
- let flag = if !is_reverted {
+ if !is_reverted {
790
push_contract(contract, #mutates_storage);
791
- ::ink::env::ReturnFlags::empty()
792
- } else {
793
- ::ink::env::ReturnFlags::REVERT
794
- };
+ }
+
+ let mut flag = ::ink::env::ReturnFlags::empty();
+ flag.set(::ink::env::ReturnFlags::REVERT, is_reverted);
795
796
::ink::env::return_value::<::ink::MessageResult::<#message_output>>(
797
flag,
0 commit comments