@dashevo/wasm-dpp 4.2.0-dev.8 → 4.2.0-dev.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/wasm-dpp",
3
- "version": "4.2.0-dev.8",
3
+ "version": "4.2.0-dev.9",
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,7 +44,7 @@
44
44
  "@babel/core": "^7.26.10",
45
45
  "@babel/preset-env": "^7.26.9",
46
46
  "@dashevo/dashcore-lib": "~0.22.0",
47
- "@dashevo/dpns-contract": "4.2.0-dev.8",
47
+ "@dashevo/dpns-contract": "4.2.0-dev.9",
48
48
  "@types/bs58": "^4.0.1",
49
49
  "@types/node": "^20.10.0",
50
50
  "@yarnpkg/pnpify": "^4.0.0-rc.42",
@@ -145,7 +145,7 @@ impl DocumentFactoryWASM {
145
145
 
146
146
  let documents_by_action = extract_documents_by_action(documents)?;
147
147
 
148
- for (_, documents) in documents_by_action.iter() {
148
+ for documents in documents_by_action.values() {
149
149
  for document in documents.iter() {
150
150
  if !contract_ids_to_check.contains(&document.data_contract().id()) {
151
151
  return Err(JsValue::from_str(
package/src/lib.rs CHANGED
@@ -1,3 +1,7 @@
1
+ // Same allowance the dpp crate root carries: the `ProtocolError` values
2
+ // threaded through these bindings are larger than clippy's default threshold.
3
+ #![allow(clippy::result_large_err)]
4
+
1
5
  extern crate core;
2
6
 
3
7
  pub use dash_platform_protocol::*;
@@ -84,7 +84,9 @@ impl StateTransitionFactoryWasm {
84
84
  | StateTransition::Unshield(_)
85
85
  | StateTransition::ShieldFromAssetLock(_)
86
86
  | StateTransition::ShieldedWithdrawal(_)
87
- | StateTransition::IdentityCreateFromShieldedPool(_) => Err(JsValue::from_str(
87
+ | StateTransition::IdentityCreateFromShieldedPool(_)
88
+ | StateTransition::ShieldFromIdentity(_)
89
+ | StateTransition::IdentityTopUpFromShieldedPool(_) => Err(JsValue::from_str(
88
90
  "shielded transitions are not yet supported in wasm-dpp StateTransitionFactory",
89
91
  )),
90
92
  },