Skip to content

Commit

Permalink
Fixed response of RemoveCredentials RPC method (#40)
Browse files Browse the repository at this point in the history
* return rm vc properly

* bump v
  • Loading branch information
lukachi authored Feb 12, 2024
1 parent 33d876c commit 8c47778
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/connector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/rarime-connector",
"version": "2.1.0-rc.2",
"version": "2.1.0-rc.3",
"description": "Facilitates interaction between a DApp and RariMe MetaMask snap",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "2.1.0-rc.2"
"version": "2.1.0-rc.3"
}
2 changes: 1 addition & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "2.1.0-rc.2",
"version": "2.1.0-rc.3",
"private": true,
"license": "(MIT-0 OR Apache-2.0)",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rarimo/rarime",
"version": "2.1.0-rc.2",
"version": "2.1.0-rc.3",
"description": "RariMe is a MetaMask Snap that safely holds any of your credentials and allows you to prove your identity without revealing any personal data. Powered by Rarimo Protocol and Zero-Knowledge Proof technology.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -56,7 +56,7 @@
"@metamask/snaps-jest": "^4.0.0",
"@metamask/snaps-sdk": "^1.1.0",
"@metamask/snaps-utils": "^4.0.0",
"@rarimo/rarime-connector": "2.1.0-rc.2",
"@rarimo/rarime-connector": "2.1.0-rc.3",
"buffer": "6.0.3",
"dids": "4.0.4",
"ethers": "5.7.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "2.1.0-rc.2",
"version": "2.1.0-rc.3",
"description": "Securely store and manage all of your identity credentials. Use them across chains with ZK-protected privacy guarantees.",
"proposedName": "RariMe",
"repository": {
"type": "git",
"url": "https://github.com/rarimo/rarime.git"
},
"source": {
"shasum": "hrr/7zfhAaSlivEUrdEN85WchDcUYKcKpF0CBWjPcKg=",
"shasum": "MDLZWWGjnl4+z/enMNOc/5b+sdV45jksxdHxiOOZaF8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export const onRpcRequest = async ({
throw new Error('User rejected request');
}

return Promise.all(vcs.map((vc) => vcManager.clearMatchedVcs(vc)));
await Promise.all(vcs.map((vc) => vcManager.clearMatchedVcs(vc)));

return undefined;
}

case RPCMethods.SaveCredentials: {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7620,7 +7620,7 @@ __metadata:
languageName: node
linkType: hard

"@rarimo/[email protected].2, @rarimo/rarime-connector@workspace:^, @rarimo/rarime-connector@workspace:packages/connector":
"@rarimo/[email protected].3, @rarimo/rarime-connector@workspace:^, @rarimo/rarime-connector@workspace:packages/connector":
version: 0.0.0-use.local
resolution: "@rarimo/rarime-connector@workspace:packages/connector"
dependencies:
Expand Down Expand Up @@ -7665,7 +7665,7 @@ __metadata:
"@metamask/snaps-jest": ^4.0.0
"@metamask/snaps-sdk": ^1.1.0
"@metamask/snaps-utils": ^4.0.0
"@rarimo/rarime-connector": 2.1.0-rc.2
"@rarimo/rarime-connector": 2.1.0-rc.3
"@typechain/ethers-v5": 11.1.1
"@types/intl": 1.2.0
"@types/lodash": ^4.14.202
Expand Down

0 comments on commit 8c47778

Please sign in to comment.