[core] rename ext_create to ext_instantiate

parent e7ebf759
...@@ -30,7 +30,7 @@ pub fn create( ...@@ -30,7 +30,7 @@ pub fn create(
create_data: &[u8], create_data: &[u8],
) -> RetCode { ) -> RetCode {
unsafe { unsafe {
sys::ext_create( sys::ext_instantiate(
code_hash.as_ptr() as u32, code_hash.as_ptr() as u32,
code_hash.len() as u32, code_hash.len() as u32,
gas_limit, gas_limit,
...@@ -165,7 +165,7 @@ pub fn println(content: &str) { ...@@ -165,7 +165,7 @@ pub fn println(content: &str) {
mod sys { mod sys {
extern "C" { extern "C" {
pub fn ext_create( pub fn ext_instantiate(
init_code_ptr: u32, init_code_ptr: u32,
init_code_len: u32, init_code_len: u32,
gas: u64, gas: u64,
......
Markdown is supported
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