Work on supporting both epoch and fuel

This commit is contained in:
Isaac Clayton 2022-07-13 12:41:47 +02:00
parent 10670dba70
commit 8974b0c490
3 changed files with 99 additions and 56 deletions

View file

@ -23,7 +23,7 @@ mod tests {
}
async {
let mut runtime = PluginBuilder::new_with_default_ctx(PluginYield::default_fuel())
let mut runtime = PluginBuilder::new_fuel_with_default_ctx(PluginYield::default_fuel())
.unwrap()
.host_function("mystery_number", |input: u32| input + 7)
.unwrap()