From a2afc334ed18f1cdded01b0d26e6403c4f6ddeaf Mon Sep 17 00:00:00 2001 From: Erick Casanova Date: Wed, 23 Nov 2022 10:02:48 -0600 Subject: [PATCH 1/3] update tasks --- .vscode/settings.json | 3 ++- .vscode/tasks.json | 42 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index acc66242..3553f19e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,6 @@ "Frunique", "fruniques", "Permill" - ] + ], + "task.allowAutomaticTasks": "on" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 0921b140..9fa7e0ea 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,7 +4,7 @@ "version": "2.0.0", "tasks": [ { - "label": "Run ", + "label": "Test", "type": "shell", "command": "cargo", "args": [ @@ -16,7 +16,7 @@ "--dev" ], "group": { - "kind": "build", + "kind": "test", "isDefault": true }, "presentation": { @@ -43,6 +43,44 @@ } ] }, + { + "label": "Compile", + "type": "shell", + "command": "cargo", + "args": [ + "build", + "--release", + "-p", + "hashed-runtime", + ], + "group": { + "kind": "build", + "isDefault": false + }, + "presentation": { + "reveal": "always", + "panel": "new" + }, + "problemMatcher": [ + { + "owner": "rust", + "fileLocation": [ + "relative", + "${workspaceRoot}" + ], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "endLine": 4, + "endColumn": 5, + "severity": 6, + "message": 7 + } + } + ] + }, { "type": "cargo", "command": "test", From b381097bcb587ece4ef1d037b3d30f33106eb9fb Mon Sep 17 00:00:00 2001 From: Erick Casanova Date: Wed, 23 Nov 2022 10:11:40 -0600 Subject: [PATCH 2/3] update rbac calls to delete rbac info related to the pallet --- pallets/fruniques/src/lib.rs | 1 + pallets/gated-marketplace/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/fruniques/src/lib.rs b/pallets/fruniques/src/lib.rs index e90dfcee..a89cf759 100644 --- a/pallets/fruniques/src/lib.rs +++ b/pallets/fruniques/src/lib.rs @@ -420,6 +420,7 @@ pub mod pallet { let _ = >::clear(1000, None); let _ = >::clear(1000, None); let _ = >::clear(1000, None); + T::Rbac::remove_pallet_storage(Self::pallet_id())?; Ok(()) } diff --git a/pallets/gated-marketplace/src/lib.rs b/pallets/gated-marketplace/src/lib.rs index 0c8b8c6d..29542696 100644 --- a/pallets/gated-marketplace/src/lib.rs +++ b/pallets/gated-marketplace/src/lib.rs @@ -670,7 +670,8 @@ pub mod pallet { let _ = >::clear(1000, None); let _ = >::clear(1000, None); let _ = >::clear(1000, None); - // T::Rbac::remove_pallet_storage(Self::pallet_id())?; + + ::Rbac::remove_pallet_storage(Self::pallet_id())?; Ok(()) } From 736be56267b58675af1386b2246d0b3d6498bcda Mon Sep 17 00:00:00 2001 From: Erick Casanova Date: Wed, 23 Nov 2022 11:18:54 -0600 Subject: [PATCH 3/3] resealse 129 --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 166a8332..065621b9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -106,7 +106,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 128, + spec_version: 129, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,