Skip to content

Commit

Permalink
user_main can only return boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Mar 29, 2024
1 parent f52c292 commit 15599a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arbitrator/prover/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,15 @@ pub fn new_internal_funcs(stylus_data: Option<StylusData>) -> Vec<Function> {
add_func(&[inst(GlobalGet, depth)], UserStackLeft);
add_func(&[inst(GlobalSet, depth)], UserSetStack);
add_func(&[inst(MemorySize, 0)], UserMemorySize);
add_func(&[inst(Call, main)], CallMain);
add_func(
&[
inst(Call, main),
// force return value to boolean
Instruction::simple(I32Eqz),
Instruction::simple(I32Eqz),
],
CallMain,
);
}
funcs
}
Expand Down

0 comments on commit 15599a8

Please sign in to comment.