Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement call host function #37

Merged
merged 14 commits into from
Jul 20, 2024
4 changes: 3 additions & 1 deletion cli/src/commands/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ impl ExecuteCmd {
let start_time = Instant::now();
let client = ExecutionClient::new();
// no host interface needed for direct execution
let (output, _gas_left) = client.execute::<MockHost>(&elf, stdin, None, None).unwrap();
let (output, _gas_left) = client
.execute::<MockHost>(&elf, stdin, None, None, None)
.unwrap();

let elapsed = elapsed(start_time.elapsed());
let green = AnsiColor::Green.on_default().effects(Effects::BOLD);
Expand Down
1 change: 0 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ elf = "0.7.4"
log = "0.4.21"
nohash-hasher = "0.2.0"
rrs-lib = { git = "https://github.com/GregAC/rrs.git" }

cfg-if = "1.0.0"
hex = "0.4.3"
serde_with = "3.8.1"
Expand Down
2 changes: 1 addition & 1 deletion core/src/runtime/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub mod tests {
fn test_io_run() {
setup_logger();
let program = Program::from(IO_ELF);
let mut runtime = Runtime::<MockHost>::new(program, None, AthenaCoreOpts::default());
let mut runtime = Runtime::<MockHost>::new(program, None, AthenaCoreOpts::default(), None);
let points = points();
runtime.write_stdin(&points.0);
runtime.write_stdin(&points.1);
Expand Down
Loading