@dashevo/wasm-dpp 0.24.19 → 0.24.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/dist/wasm/wasm_dpp.d.ts +192 -192
- package/dist/wasm/wasm_dpp.js +1157 -1157
- package/dist/wasm/wasm_dpp_bg.js +1 -1
- package/lib/wasm/wasm_dpp.d.ts +192 -192
- package/package.json +3 -3
- package/scripts/build-wasm.sh +1 -1
- package/src/utils.rs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/wasm-dpp",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.21",
|
|
4
4
|
"description": "The JavaScript implementation of the Dash Platform Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@babel/core": "^7.15.5",
|
|
45
45
|
"@babel/preset-env": "^7.15.4",
|
|
46
46
|
"@dashevo/dashcore-lib": "~0.20.9",
|
|
47
|
-
"@dashevo/dpns-contract": "0.24.
|
|
48
|
-
"@dashevo/dpp": "0.24.
|
|
47
|
+
"@dashevo/dpns-contract": "0.24.21",
|
|
48
|
+
"@dashevo/dpp": "0.24.21",
|
|
49
49
|
"@dashevo/wasm-re2": "~1.0.2",
|
|
50
50
|
"@types/bs58": "^4.0.1",
|
|
51
51
|
"@types/node": "^14.6.0",
|
package/scripts/build-wasm.sh
CHANGED
package/src/utils.rs
CHANGED
|
@@ -193,7 +193,7 @@ pub fn generic_of_js_val<T: RefFromWasmAbi<Abi = u32>>(
|
|
|
193
193
|
.name();
|
|
194
194
|
|
|
195
195
|
if ctor_name == class_name {
|
|
196
|
-
let ptr = js_sys::Reflect::get(js_value, &JsValue::from_str("
|
|
196
|
+
let ptr = js_sys::Reflect::get(js_value, &JsValue::from_str("__wbg_ptr"))?;
|
|
197
197
|
let ptr_u32: u32 = ptr
|
|
198
198
|
.as_f64()
|
|
199
199
|
.ok_or_else(|| JsValue::from(JsError::new("Invalid JS object pointer")))?
|