Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
gshep committed Jul 20, 2023
1 parent 96b0558 commit 1dd2815
Show file tree
Hide file tree
Showing 14 changed files with 566 additions and 261 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions core-backend/codegen/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ impl HostFn {
let run: Expr = match self.meta.call_type {
CallType::Any => {
parse_quote! {
ctx.run_any(#cost, |ctx| {
ctx.run_any(gas, allowance, #cost, |ctx| {
#inner_block
})
}
}
CallType::Fallible => {
parse_quote! {
ctx.run_fallible::<_, _, #err>(err_mid_ptr, #cost, |ctx| {
ctx.run_fallible::<_, _, #err>(gas, allowance, err_mid_ptr, #cost, |ctx| {
#inner_block
})
}
Expand Down
Loading

0 comments on commit 1dd2815

Please sign in to comment.