mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Fix wasm_export_functions when using a return statement (#12107)
When used a return statement before we directly returned from the function which is obviously wrong.
This commit is contained in:
@@ -90,7 +90,7 @@ macro_rules! wasm_export_functions {
|
||||
&mut &input[..],
|
||||
).expect("Input data is correctly encoded");
|
||||
|
||||
$( $fn_impl )*
|
||||
(|| { $( $fn_impl )* })()
|
||||
}
|
||||
|
||||
$crate::to_substrate_wasm_fn_return_value(&())
|
||||
@@ -118,7 +118,7 @@ macro_rules! wasm_export_functions {
|
||||
&mut &input[..],
|
||||
).expect("Input data is correctly encoded");
|
||||
|
||||
$( $fn_impl )*
|
||||
(|| { $( $fn_impl )* })()
|
||||
};
|
||||
|
||||
$crate::to_substrate_wasm_fn_return_value(&output)
|
||||
|
||||
Reference in New Issue
Block a user