fix(stake): set generated/imported key as default for all actions
authorAJ ONeal <coolaj86@gmail.com>
Mon, 27 Jun 2022 15:51:55 +0000 (09:51 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Mon, 27 Jun 2022 15:51:55 +0000 (09:51 -0600)
bin/crowdnode.js

index 4f8a4796a2e3b46c5948d3b0d0e816da124715b8..193e7cd72a30dbb2e0f78206b6d37503d3338a98 100755 (executable)
@@ -452,14 +452,14 @@ async function stakeDash(
 
   if (!state.status?.accept) {
     if (!state.status?.signup) {
-      await sendSignup({ dashApi, defaultAddr: addr, insightBaseUrl }, []);
+      await sendSignup({ dashApi, defaultAddr: addr, insightBaseUrl }, [addr]);
     }
-    await acceptTerms({ dashApi, defaultAddr: addr, insightBaseUrl }, []);
+    await acceptTerms({ dashApi, defaultAddr: addr, insightBaseUrl }, [addr]);
   }
 
   await depositDash(
     { dashApi, defaultAddr: addr, insightBaseUrl, noReserve },
-    args,
+    [addr].concat(args),
   );
 }