Commit 31741171 authored by yjh's avatar yjh Committed by Gavin Wood
Browse files

fix var name for post_upward_message (#474)


Signed-off-by: default avataryjhmelody <465402634@qq.com>
parent 05b1c168
Pipeline #54062 failed with stages
in 11 minutes and 47 seconds
......@@ -45,7 +45,7 @@ mod ids {
pub const POST_MESSAGE: usize = 1;
/// Post a message to this parachain's relay chain.
pub const POST_UPWARDS_MESSAGE: usize = 2;
pub const POST_UPWARD_MESSAGE: usize = 2;
}
/// WASM code execution mode.
......@@ -155,7 +155,7 @@ impl ModuleImportResolver for Resolver {
}
}
"ext_upwards_post_message" => {
let index = ids::POST_UPWARDS_MESSAGE;
let index = ids::POST_UPWARD_MESSAGE;
let (params, ret_ty): (&[ValueType], Option<ValueType>) =
(&[ValueType::I32, ValueType::I32], None);
......@@ -268,7 +268,7 @@ impl<'a, E: 'a + Externalities> Externals for ValidationExternals<'a, E> {
) -> Result<Option<RuntimeValue>, Trap> {
match index {
ids::POST_MESSAGE => self.ext_post_message(args).map(|_| None),
ids::POST_UPWARDS_MESSAGE => self.ext_post_upward_message(args).map(|_| None),
ids::POST_UPWARD_MESSAGE => self.ext_post_upward_message(args).map(|_| None),
_ => panic!("no externality at given index"),
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment