mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 17:15:42 +00:00
Contracts: Fix legacy uapi (#3994)
Fix some broken legacy definitions of pallet_contracts_uapi storage host functions
This commit is contained in:
@@ -149,3 +149,13 @@ macro_rules! output {
|
||||
$host_fn($($arg,)* $output);
|
||||
};
|
||||
}
|
||||
|
||||
/// Similar to `output!` but unwraps the result.
|
||||
#[macro_export]
|
||||
macro_rules! unwrap_output {
|
||||
($output: ident, $buffer: expr, $host_fn:path, $($arg:expr),*) => {
|
||||
let mut $output = $buffer;
|
||||
let $output = &mut &mut $output[..];
|
||||
$host_fn($($arg,)* $output).unwrap();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user