Skip to content

Commit

Permalink
Added Hex seed to profile manager
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Dec 19, 2024
1 parent a221df8 commit 96f74e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/playground/src/stores/profile_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Profile {
pk: string;
keypairType: KeypairType | undefined;
email: string;
hexSeed: string;
}

export interface State {
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/utils/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function loadProfile(grid: GridClient): Promise<Profile> {
pk: (await grid.twins.get({ id: grid!.twinId })).pk,
keypairType: grid.clientOptions!.keypairType,
email: await readEmail(grid),
hexSeed: grid.clientOptions!.mnemonic,
};
}

Expand Down
9 changes: 4 additions & 5 deletions packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,16 @@
<v-col cols="12" md="6" lg="6" xl="6">
<PasswordInputWrapper #="{ props }">
<VTextField
:label="
profileManager.profile.mnemonic.startsWith('0x') || profileManager.profile.mnemonic.length === 64
? 'Your Hex Seed'
: 'Your Mnemonic'
"
:label="'Your Mnemonic'"
readonly
v-model="profileManager.profile.mnemonic"
v-bind="props"
:disabled="activating || creatingAccount || activatingAccount"
/>
</PasswordInputWrapper>
<CopyInputWrapper :data="profileManager.profile.twinId.toString()" #="{ props }">
<VTextField label="Your Hex Seed" readonly v-model="profileManager.profile.hexSeed" v-bind="props" />
</CopyInputWrapper>

<CopyInputWrapper :data="profileManager.profile.twinId.toString()" #="{ props }">
<VTextField label="Twin ID" readonly v-model="profileManager.profile.twinId" v-bind="props" />
Expand Down

0 comments on commit 96f74e8

Please sign in to comment.