@@ -70,13 +70,6 @@ const attemptSeedDerivation = async (next, args) => {
7070 //
7171 // following code is intentionally verbose for sake of clarity
7272
73− const walProxy = wallet.matchWith({
74− Just: wal => addressFromSecp256k1Public(wal.value.publicKey),
75− Nothing: _ => {
76− throw BRIDGE_ERROR.MISSING_WALLET
77− }
78− })
79−
8073 const point = pointCursor.matchWith({
8174 Just: pt => pt.value,
8275 Nothing: _ => {
@@ -111,6 +104,13 @@ const attemptSeedDerivation = async (next, args) => {
111104
112105 } else if (walletType === WALLET_NAMES.MNEMONIC) {
113106
107+ const walProxy = wallet.matchWith({
108+ Just: wal => addressFromSecp256k1Public(wal.value.publicKey),
109+ Nothing: _ => {
110+ throw BRIDGE_ERROR.MISSING_WALLET
111+ }
112+ })
113+
114114 const mnemonic = authMnemonic.matchWith({
115115 Just: mnem => mnem.value,
116116 Nothing: _ => {