This repository was archived by the owner on Mar 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ class Client {
324
324
? settings . get ( 'delegations' )
325
325
: { }
326
326
327
- delegations [ did ] = { ucan : imported , alias }
327
+ delegations [ did ] = { ucan : await delegationToString ( imported ) , alias }
328
328
settings . set ( 'delegations' , delegations )
329
329
330
330
return imported
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { delegationToString, stringToDelegation } from './encoding.js'
9
9
* @property {string } [agent_secret]
10
10
* @property {string } [account_secret]
11
11
* @property {string } [email]
12
- * @property {string } [delegation ]
12
+ * @property {string } [account ]
13
13
* @property {any } [delegations]
14
14
*/
15
15
@@ -71,8 +71,8 @@ export async function objectToMap(objectToParse) {
71
71
settings . set ( 'email' , objectToParse . email )
72
72
}
73
73
74
- if ( objectToParse . delegation ) {
75
- settings . set ( 'delegation ' , objectToParse . delegation )
74
+ if ( objectToParse . account ) {
75
+ settings . set ( 'account ' , objectToParse . account )
76
76
}
77
77
78
78
if ( objectToParse . delegations ) {
@@ -150,8 +150,8 @@ export async function exportSettings(settings) {
150
150
}
151
151
}
152
152
153
- if ( settings . has ( 'delegation ' ) ) {
154
- output . delegation = settings . get ( 'delegation ' )
153
+ if ( settings . has ( 'account ' ) ) {
154
+ output . account = settings . get ( 'account ' )
155
155
}
156
156
157
157
if ( settings . has ( 'delegations' ) ) {
You can’t perform that action at this time.
0 commit comments