Skip to content

Commit

Permalink
update for CSL 12.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lisicky committed Aug 30, 2024
1 parent a9edce6 commit 0ac43d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
6 changes: 3 additions & 3 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "csl-mobile-bridge"
version = "6.0.0"
version = "6.0.1"
authors = ["EMURGO"]
edition = "2018"

Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion rust/src/android/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10738,7 +10738,8 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1min
let self_rptr = self_jrptr.typed_ref::<MintAssets>()?;
let key_jrptr = key_ptr.rptr(&env)?;
let key = key_jrptr.typed_ref::<AssetName>()?;
let value = value_ptr.rptr(&env)?.typed_ref::<Int>()?.clone();
let value_jrptr = value_ptr.rptr(&env)?;
let value = value_jrptr.typed_ref::<Int>()?;
let result = self_rptr.insert(key, value).into_result()?;
result.rptr().jptr(&env)
})
Expand Down
2 changes: 1 addition & 1 deletion rust/src/ios/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<MintAssets>()?;
let key = key_rptr.typed_ref::<AssetName>()?;
let value = value_rptr.typed_ref::<Int>()?.clone();
let value = value_rptr.typed_ref::<Int>()?;
let result = self_ref.insert(key, value).into_result()?;
Ok::<Option<RPtr>, String>(result.map(|v| v.rptr()))
})
Expand Down

0 comments on commit 0ac43d0

Please sign in to comment.