mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 14:21:11 +00:00
Companion for PR 8913 (#3114)
* Companion for PR 8913 polkadot companion: https://github.com/paritytech/substrate/pull/8913 * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -34,7 +34,10 @@ pub fn validate_candidate(
|
||||
let blob = prevalidate(code)?;
|
||||
let artifact = prepare(blob)?;
|
||||
let executor = TaskExecutor::new()?;
|
||||
let result = execute(&artifact, params, executor)?;
|
||||
let result = unsafe {
|
||||
// SAFETY: This is trivially safe since the artifact is obtained by calling `prepare`.
|
||||
execute(&artifact, params, executor)?
|
||||
};
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user