@@ -8,7 +8,6 @@ import { useWallet } from 'store/wallet';
8import { usePointCursor } from 'store/pointCursor';
8import { usePointCursor } from 'store/pointCursor';
10import * as need from 'lib/need';
10import * as need from 'lib/need';
11−import { generateCode } from 'lib/networkCode';
14 attemptNetworkSeedDerivation,
13 attemptNetworkSeedDerivation,
@@ -29,8 +28,6 @@ export default function useKeyfileGenerator(manualNetworkSeed) {
29 const [generating, setGenerating] = useState(true);
28 const [generating, setGenerating] = useState(true);
30 const [keyfile, setKeyfile] = useState(false);
29 const [keyfile, setKeyfile] = useState(false);
32− const [code, setCode] = useState(false);
34 const _point = need.point(pointCursor);
31 const _point = need.point(pointCursor);
35 const _details = need.details(getDetails(_point));
32 const _details = need.details(getDetails(_point));
@@ -74,8 +71,6 @@ export default function useKeyfileGenerator(manualNetworkSeed) {
75 const pair = deriveNetworkKeys(_networkSeed);
72 const pair = deriveNetworkKeys(_networkSeed);
77− setCode(generateCode(pair));
79 if (!keysMatchChain(pair, _details)) {
74 if (!keysMatchChain(pair, _details)) {
80 setGenerating(false);
75 setGenerating(false);
81 setNotice('Derived networking keys do not match on-chain details.');
76 setNotice('Derived networking keys do not match on-chain details.');
@@ -93,7 +88,6 @@ export default function useKeyfileGenerator(manualNetworkSeed) {
93 urbitWallet,
88 urbitWallet,
95 authMnemonic,
90 authMnemonic,
@@ -119,7 +113,6 @@ export default function useKeyfileGenerator(manualNetworkSeed) {
119 downloaded,
113 downloaded,
120 download,
114 download,
125 return { ...values, bind: values };
118 return { ...values, bind: values };