@@ -70,13 +70,6 @@ const attemptSeedDerivation = async (next, args) => {
71 // following code is intentionally verbose for sake of clarity
71 // following code is intentionally verbose for sake of clarity
73− const walProxy = wallet.matchWith({
74− Just: wal => addressFromSecp256k1Public(wal.value.publicKey),
76− throw BRIDGE_ERROR.MISSING_WALLET
80 const point = pointCursor.matchWith({
73 const point = pointCursor.matchWith({
81 Just: pt => pt.value,
74 Just: pt => pt.value,
82 Nothing: _ => {
75 Nothing: _ => {
@@ -111,6 +104,13 @@ const attemptSeedDerivation = async (next, args) => {
112 } else if (walletType === WALLET_NAMES.MNEMONIC) {
105 } else if (walletType === WALLET_NAMES.MNEMONIC) {
107+ const walProxy = wallet.matchWith({
108+ Just: wal => addressFromSecp256k1Public(wal.value.publicKey),
110+ throw BRIDGE_ERROR.MISSING_WALLET
114 const mnemonic = authMnemonic.matchWith({
114 const mnemonic = authMnemonic.matchWith({
115 Just: mnem => mnem.value,
115 Just: mnem => mnem.value,
116 Nothing: _ => {
116 Nothing: _ => {