Skip to content

Commit

Permalink
fix writing external host call table
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Aug 16, 2024
1 parent b1f5603 commit 82346ea
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions crates/specs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,18 @@ impl Tables {
);
}
});
write_file(
dir,
"external_host_table.json",
&serde_json::to_string_pretty(&self.execution_tables.external_host_call_table).unwrap(),
);

for (i, external_host_call_table) in self
.execution_tables
.external_host_call_table
.iter()
.enumerate()
{
write_file(
dir,
&format!("external_host_table.{}.json", i),
&serde_json::to_string_pretty(&external_host_call_table).unwrap(),
);
}
}
}

0 comments on commit 82346ea

Please sign in to comment.