@@ -14,7 +14,7 @@ import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
14import * as ob from 'urbit-ob'
14import * as ob from 'urbit-ob'
16import { ROUTE_NAMES } from '../lib/router'
16import { ROUTE_NAMES } from '../lib/router'
17−import { DEFAULT_HD_PATH, walletFromMnemonic } from '../lib/wallet'
17+import { DEFAULT_HD_PATH, urbitWalletFromTicket } from '../lib/wallet'
19const placeholder = (len) => {
19const placeholder = (len) => {
20 let bytes = window.crypto.getRandomValues(new Uint8Array(len))
20 let bytes = window.crypto.getRandomValues(new Uint8Array(len))
@@ -73,8 +73,6 @@ class Shards extends React.Component {
75 async walletFromShards(shard1, shard2, shard3, pointName, passphrase) {
75 async walletFromShards(shard1, shard2, shard3, pointName, passphrase) {
76− const { setWallet, setUrbitWallet } = this.props
78 const s1 = shard1 === '' ? undefined : shard1
76 const s1 = shard1 === '' ? undefined : shard1
79 const s2 = shard2 === '' ? undefined : shard2
77 const s2 = shard2 === '' ? undefined : shard2
80 const s3 = shard3 === '' ? undefined : shard3
78 const s3 = shard3 === '' ? undefined : shard3
@@ -87,15 +85,8 @@ class Shards extends React.Component {
89 if (ticket !== undefined) {
87 if (ticket !== undefined) {
90− const urbitWallet = await kg.generateWallet({
88+ const uhdw = await urbitWalletFromTicket(ticket, pointName, passphrase);
92− ship: ob.patp2dec(pointName),
93− passphrase: passphrase
95− const mnemonic = urbitWallet.ownership.seed
96− const wallet = walletFromMnemonic(mnemonic, DEFAULT_HD_PATH, passphrase)
98− setUrbitWallet(Just(urbitWallet))
89+ this.props.setUrbitWallet(Just(uhdw));