Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 3174117

Browse files
yjhmelodygavofyork
authored andcommitted
fix var name for post_upward_message (#474)
Signed-off-by: yjhmelody <465402634@qq.com>
1 parent 05b1c16 commit 3174117

File tree

1 file changed

+3
-3
lines changed
  • parachain/src/wasm_executor

1 file changed

+3
-3
lines changed

parachain/src/wasm_executor/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mod ids {
4545
pub const POST_MESSAGE: usize = 1;
4646

4747
/// Post a message to this parachain's relay chain.
48-
pub const POST_UPWARDS_MESSAGE: usize = 2;
48+
pub const POST_UPWARD_MESSAGE: usize = 2;
4949
}
5050

5151
/// WASM code execution mode.
@@ -155,7 +155,7 @@ impl ModuleImportResolver for Resolver {
155155
}
156156
}
157157
"ext_upwards_post_message" => {
158-
let index = ids::POST_UPWARDS_MESSAGE;
158+
let index = ids::POST_UPWARD_MESSAGE;
159159
let (params, ret_ty): (&[ValueType], Option<ValueType>) =
160160
(&[ValueType::I32, ValueType::I32], None);
161161

@@ -268,7 +268,7 @@ impl<'a, E: 'a + Externalities> Externals for ValidationExternals<'a, E> {
268268
) -> Result<Option<RuntimeValue>, Trap> {
269269
match index {
270270
ids::POST_MESSAGE => self.ext_post_message(args).map(|_| None),
271-
ids::POST_UPWARDS_MESSAGE => self.ext_post_upward_message(args).map(|_| None),
271+
ids::POST_UPWARD_MESSAGE => self.ext_post_upward_message(args).map(|_| None),
272272
_ => panic!("no externality at given index"),
273273
}
274274
}

0 commit comments

Comments
 (0)