@@ -14,7 +14,7 @@ import * as kg from '../../../node_modules/urbit-key-generation/dist/index'
1414import * as ob from 'urbit-ob'
1515
1616import { ROUTE_NAMES } from '../lib/router'
17−import { DEFAULT_HD_PATH, walletFromMnemonic } from '../lib/wallet'
17+import { DEFAULT_HD_PATH, urbitWalletFromTicket } from '../lib/wallet'
1818
1919const placeholder = (len) => {
2020 let bytes = window.crypto.getRandomValues(new Uint8Array(len))
@@ -73,8 +73,6 @@ class Shards extends React.Component {
7373 }
7474
7575 async walletFromShards(shard1, shard2, shard3, pointName, passphrase) {
76− const { setWallet, setUrbitWallet } = this.props
77−
7876 const s1 = shard1 === '' ? undefined : shard1
7977 const s2 = shard2 === '' ? undefined : shard2
8078 const s3 = shard3 === '' ? undefined : shard3
@@ -87,15 +85,8 @@ class Shards extends React.Component {
8785 }
8886
8987 if (ticket !== undefined) {
90− const urbitWallet = await kg.generateWallet({
91− ticket: ticket,
92− ship: ob.patp2dec(pointName),
93− passphrase: passphrase
94− })
95− const mnemonic = urbitWallet.ownership.seed
96− const wallet = walletFromMnemonic(mnemonic, DEFAULT_HD_PATH, passphrase)
97− setWallet(wallet)
98− setUrbitWallet(Just(urbitWallet))
88+ const uhdw = await urbitWalletFromTicket(ticket, pointName, passphrase);
89+ this.props.setUrbitWallet(Just(uhdw));
9990 }
10091 }
10192