mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Remove native call (#12201)
* Remove native call With the recent introduction of staging runtime apis the native call wasn't supported anymore. This removes the entire support for this as it is not used anymore. * FMT * Fix benchmarks * FIX ui tests
This commit is contained in:
@@ -449,28 +449,30 @@ impl<'a> ApiRuntimeImplToApiRuntimeApiImpl<'a> {
|
||||
}
|
||||
|
||||
let res = (|| {
|
||||
let version = #crate_::CallApiAt::<__SR_API_BLOCK__>::runtime_version_at(self.call, at)?;
|
||||
let version = #crate_::CallApiAt::<__SR_API_BLOCK__>::runtime_version_at(
|
||||
self.call,
|
||||
at,
|
||||
)?;
|
||||
|
||||
let params = #crate_::CallApiAtParams::<_, fn() -> _, _> {
|
||||
at,
|
||||
function: (*fn_name)(version),
|
||||
native_call: None,
|
||||
arguments: params,
|
||||
overlayed_changes: &self.changes,
|
||||
storage_transaction_cache: &self.storage_transaction_cache,
|
||||
context,
|
||||
recorder: &self.recorder,
|
||||
};
|
||||
let params = #crate_::CallApiAtParams {
|
||||
at,
|
||||
function: (*fn_name)(version),
|
||||
arguments: params,
|
||||
overlayed_changes: &self.changes,
|
||||
storage_transaction_cache: &self.storage_transaction_cache,
|
||||
context,
|
||||
recorder: &self.recorder,
|
||||
};
|
||||
|
||||
#crate_::CallApiAt::<__SR_API_BLOCK__>::call_api_at::<#crate_::NeverNativeValue, _>(
|
||||
self.call,
|
||||
params,
|
||||
)
|
||||
})();
|
||||
#crate_::CallApiAt::<__SR_API_BLOCK__>::call_api_at(
|
||||
self.call,
|
||||
params,
|
||||
)
|
||||
})();
|
||||
|
||||
self.commit_or_rollback(std::result::Result::is_ok(&res));
|
||||
|
||||
res.map(#crate_::NativeOrEncoded::into_encoded)
|
||||
res
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user