Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit d91af20

Browse files
authored
Merge pull request #309 from nevermined-io/feature/support-auth-message-user-profile
Feature/support auth message user profile
2 parents 7d21a2a + 6bbdbaf commit d91af20

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7-
#### [v1.7.0-rc1](https://github.com/nevermined-io/components-catalog/compare/v1.6.5...v1.7.0-rc1)
7+
#### [v1.7.0](https://github.com/nevermined-io/components-catalog/compare/v1.7.0-rc1...v1.7.0)
8+
9+
> 13 June 2023
10+
11+
- return only agreementId when transaction fail [`#305`](https://github.com/nevermined-io/components-catalog/pull/305)
12+
- feat: support arbitrum networks and update sdk version [`#306`](https://github.com/nevermined-io/components-catalog/pull/306)
13+
- address comments [`31ba1f8`](https://github.com/nevermined-io/components-catalog/commit/31ba1f8f87fd6e4ea1233444e1969efda09539a5)
14+
- Adding v1.7.0-rc1 Changelog updates [`8e1bd58`](https://github.com/nevermined-io/components-catalog/commit/8e1bd589a8897ddfedcc6ff7df4139a688a46422)
15+
- Adding v1.6.5 Changelog updates [`49d88c0`](https://github.com/nevermined-io/components-catalog/commit/49d88c0196022b388e9ee47c3abba2669d2c55cb)
16+
17+
#### [v1.7.0-rc1](https://github.com/nevermined-io/components-catalog/compare/v1.6.6...v1.7.0-rc1)
818

919
> 13 June 2023
1020
1121
- pass account by argument instead of get from the list [`4c663e9`](https://github.com/nevermined-io/components-catalog/commit/4c663e922bada1cb26d10adbbc39586379711979)
1222
- fix doc lint issues [`0c66736`](https://github.com/nevermined-io/components-catalog/commit/0c66736dd2feb0233c80775e8561441b2ba1c78d)
1323
- addresss comment [`bac396d`](https://github.com/nevermined-io/components-catalog/commit/bac396d8801ca378515ec21e8b719d600194cee1)
1424

25+
#### [v1.6.6](https://github.com/nevermined-io/components-catalog/compare/v1.6.5...v1.6.6)
26+
27+
> 13 June 2023
28+
29+
- feat: support arbitrum networks and update sdk version [`#306`](https://github.com/nevermined-io/components-catalog/pull/306)
30+
1531
#### [v1.6.5](https://github.com/nevermined-io/components-catalog/compare/v1.6.4...v1.6.5)
1632

1733
> 2 June 2023

catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/catalog",
3-
"version": "1.7.2",
3+
"version": "1.7.3",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"dependencies": {

catalog/src/services/account.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export const useAccountCollection = (
288288
*/
289289
export const useUserProfile = (
290290
walletAddress: string,
291+
signMessage?: string,
291292
): {
292293
/** Input error message */
293294
inputError: string
@@ -388,7 +389,7 @@ export const useUserProfile = (
388389
const submitUserProfile = async () => {
389390
try {
390391
const userAccount = await sdk.accounts.getAccount(walletAddress)
391-
await checkAuth(userAccount)
392+
await checkAuth(userAccount, signMessage)
392393

393394
if (!userProfile.nickname) {
394395
setInputError('Nickname is required')
@@ -440,7 +441,7 @@ export const useUserProfile = (
440441
setNewAddress('')
441442
}
442443

443-
const tokenAuth = await checkAuth(userAccount)
444+
const tokenAuth = await checkAuth(userAccount, signMessage)
444445

445446
setAddresses([...userProfileData.addresses])
446447

providers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nevermined-io/providers",
33
"private": false,
4-
"version": "1.7.2",
4+
"version": "1.7.3",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"dependencies": {

0 commit comments

Comments
 (0)