From 87a64169252ba621fdad74282e0004ef945e91d6 Mon Sep 17 00:00:00 2001 From: Francois Hardrouyere Date: Wed, 1 May 2024 20:49:35 +0200 Subject: [PATCH] [x/programs] safe wrapper around C ffi interface (#869) * macro skeleton * write macro for ffi-safe bindings * avoid panicking todo! Signed-off-by: Franfran <51274081+iFrostizz@users.noreply.github.com> * remove unused arms --------- Signed-off-by: Franfran <51274081+iFrostizz@users.noreply.github.com> --- x/programs/rust/examples/token/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/programs/rust/examples/token/src/lib.rs b/x/programs/rust/examples/token/src/lib.rs index d11edf7c07..e523308554 100644 --- a/x/programs/rust/examples/token/src/lib.rs +++ b/x/programs/rust/examples/token/src/lib.rs @@ -221,7 +221,7 @@ mod tests { require: None, }); - /*plan.add_step(Step { + plan.add_step(Step { endpoint: Endpoint::Execute, method: "mint_to".into(), params: vec![ @@ -292,7 +292,7 @@ mod tests { require: Some(Require { result: ResultAssertion::NumericEq(0), }), - });*/ + }); let plan_responses = simulator.run_plan(&plan).unwrap();