mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-04 16:27:07 +00:00
Contracts: Fix legacy uapi (#3994)
Fix some broken legacy definitions of pallet_contracts_uapi storage host functions
This commit is contained in:
1 parent
df818d2974
commit
2d927b0772
5 files changed
+112
-131
No files matched your search
@@ -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