diff --git a/Cargo.lock b/Cargo.lock index 1e0992baf..5903e88ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1587,7 +1587,7 @@ dependencies = [ [[package]] name = "soroban-spec" version = "0.0.4" -source = "git+https://github.com/stellar/rs-soroban-sdk?rev=48eb77b6#48eb77b632bc580b1226a8f8825bdb864ec62180" +source = "git+https://github.com/stellar/rs-soroban-sdk?rev=864a309b#864a309bca7ad91d6c7189fe87e018f64ad6ba06" dependencies = [ "base64", "darling", diff --git a/Cargo.toml b/Cargo.toml index 96f3e7e07..d352cbcf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ jsonrpsee-core = "0.15.1" regex = "1.6.0" [patch.crates-io] -soroban-spec = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "48eb77b6" } +soroban-spec = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "864a309b" } stellar-strkey = { git = "https://github.com/stellar/rs-stellar-strkey", rev = "3c21b987" } soroban-env-common = { git = "https://github.com/stellar/rs-soroban-env", rev = "fb8a384e" } soroban-env-host = { git = "https://github.com/stellar/rs-soroban-env", rev = "fb8a384e" } diff --git a/src/token/create.rs b/src/token/create.rs index 30e8aab03..a4c24f1b5 100644 --- a/src/token/create.rs +++ b/src/token/create.rs @@ -188,7 +188,7 @@ impl Cmd { let contract_id = get_contract_id(salt, admin.clone())?; h.invoke_function( HostFunction::InvokeContract, - init_token_parameters(contract_id, &admin, name, symbol, decimal), + init_parameters(contract_id, &admin, name, symbol, decimal), )?; let (storage, _, _) = h.try_finish().map_err(|_h| { @@ -249,9 +249,9 @@ impl Cmd { client .send_transaction(&build_tx( - build_init_token_op( + build_init_op( &Hash(contract_id), - init_token_parameters(contract_id, &admin_key, name, symbol, decimal), + init_parameters(contract_id, &admin_key, name, symbol, decimal), )?, sequence + 2, fee, @@ -330,7 +330,7 @@ fn build_create_token_op(contract_id: &Hash, salt: [u8; 32]) -> Result Result { +fn build_init_op(contract_id: &Hash, parameters: ScVec) -> Result { Ok(Operation { source_account: None, body: OperationBody::InvokeHostFunction(InvokeHostFunctionOp {