Questions tagged [runtime-interface]
The runtime-interface tag has no usage guidance.
2
questions
2
votes
2
answers
78
views
Calling std-based host function from a pallet
Based on:
Use std only rust library to extend substrate runtime interface?
How to understand [runtime-interface] and `Externalities`?
I understand that I should be able to:
have a crate that is not ...
0
votes
0
answers
48
views
runtime requires function imports which are not present on the host: 'env:_critical_section_1_0_acquire', 'env:_critical_section_1_0_release'
I wanted to add a runtime interface, which can be simplified to the following:
#[sp_runtime_interface::runtime_interface]
pub trait Test {
fn some_bytes() -> Vec<u8> {
vec![]
}...