Skip to content

Commit 62191a7

Browse files
committed
fix
1 parent 93d2296 commit 62191a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/ink/codegen/src/generator/dispatch.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -786,12 +786,12 @@ impl Dispatch<'_> {
786786
&& ::ink::is_result_err!(result);
787787

788788
// no need to push back results: transaction gets reverted anyways
789-
let flag = if !is_reverted {
789+
if !is_reverted {
790790
push_contract(contract, #mutates_storage);
791-
::ink::env::ReturnFlags::empty()
792-
} else {
793-
::ink::env::ReturnFlags::REVERT
794-
};
791+
}
792+
793+
let mut flag = ::ink::env::ReturnFlags::empty();
794+
flag.set(::ink::env::ReturnFlags::REVERT, is_reverted);
795795

796796
::ink::env::return_value::<::ink::MessageResult::<#message_output>>(
797797
flag,

0 commit comments

Comments
 (0)