From 0ac43d021dbcd76f4ef2a01e5d16e92675f932eb Mon Sep 17 00:00:00 2001 From: lisicky Date: Sat, 31 Aug 2024 00:49:44 +0900 Subject: [PATCH] update for CSL 12.0.1 --- package.json | 2 +- rust/Cargo.lock | 6 +++--- rust/Cargo.toml | 4 ++-- rust/src/android/bridge.rs | 3 ++- rust/src/ios/bridge.rs | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4a51443..6ee1587 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@emurgo/csl-mobile-bridge", "title": "CSL mobile bridge", - "version": "6.0.0", + "version": "6.0.1", "description": "React-native bindings for Emurgo's cardano-serialization-lib (Cardano haskell Shelley)", "main": "index.js", "files": [ diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 7d80cf3..8119fb9 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -87,9 +87,9 @@ checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" [[package]] name = "cardano-serialization-lib" -version = "12.0.0" +version = "12.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d239ac90193de5e32e753c53a4a1a859bc9204d4905875b8fe26e3e343f69a3" +checksum = "b56aa4b097f14cb1cf85a96f4ace6f347d3e5b5a19e047e2b7accd14e09902aa" dependencies = [ "bech32", "cbor_event", @@ -222,7 +222,7 @@ source = "git+https://github.com/emurgo/cryptoxide?tag=0.4.4#cbc69c01642b263541c [[package]] name = "csl-mobile-bridge" -version = "6.0.0" +version = "6.0.1" dependencies = [ "base64", "byteorder", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index e215f16..53edeab 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "csl-mobile-bridge" -version = "6.0.0" +version = "6.0.1" authors = ["EMURGO"] edition = "2018" @@ -11,7 +11,7 @@ cbindgen = "=0.14.1" cryptoxide = { git = "https://github.com/emurgo/cryptoxide", tag="0.4.4"} [dependencies] -cardano-serialization-lib = "=12.0.0" +cardano-serialization-lib = "=12.0.1" byteorder = "1.4.3" base64 = "0.20.0" # tag = "2.3.1" diff --git a/rust/src/android/bridge.rs b/rust/src/android/bridge.rs index bc105a0..ff28795 100644 --- a/rust/src/android/bridge.rs +++ b/rust/src/android/bridge.rs @@ -10738,7 +10738,8 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1min let self_rptr = self_jrptr.typed_ref::()?; let key_jrptr = key_ptr.rptr(&env)?; let key = key_jrptr.typed_ref::()?; - let value = value_ptr.rptr(&env)?.typed_ref::()?.clone(); + let value_jrptr = value_ptr.rptr(&env)?; + let value = value_jrptr.typed_ref::()?; let result = self_rptr.insert(key, value).into_result()?; result.rptr().jptr(&env) }) diff --git a/rust/src/ios/bridge.rs b/rust/src/ios/bridge.rs index bc73619..19a4e72 100644 --- a/rust/src/ios/bridge.rs +++ b/rust/src/ios/bridge.rs @@ -9216,7 +9216,7 @@ pub unsafe extern "C" fn csl_bridge_mint_assets_insert(self_rptr: RPtr, key_rptr handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; let key = key_rptr.typed_ref::()?; - let value = value_rptr.typed_ref::()?.clone(); + let value = value_rptr.typed_ref::()?; let result = self_ref.insert(key, value).into_result()?; Ok::, String>(result.map(|v| v.rptr())) })