Switch from epoch to fuel

This commit is contained in:
Isaac Clayton 2022-07-13 11:09:06 +02:00
parent 7f11a32364
commit d04c3388b4
4 changed files with 12 additions and 41 deletions

View file

@ -23,7 +23,7 @@ mod tests {
}
async {
let (mut runtime, incrementer) = PluginBuilder::new_with_default_ctx()
let mut runtime = PluginBuilder::new_with_default_ctx()
.unwrap()
.host_function("mystery_number", |input: u32| input + 7)
.unwrap()
@ -53,8 +53,6 @@ mod tests {
.await
.unwrap();
std::thread::spawn(move || incrementer.block_on());
let plugin = TestPlugin {
noop: runtime.function("noop").unwrap(),
constant: runtime.function("constant").unwrap(),