From: AJ ONeal Date: Mon, 27 Jun 2022 15:51:55 +0000 (-0600) Subject: fix(stake): set generated/imported key as default for all actions X-Git-Tag: v1.5.1~1 X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=25cf698436409b98e3c76978a56e3c4f36b83c53;p=crowdnode.js%2F.git fix(stake): set generated/imported key as default for all actions --- diff --git a/bin/crowdnode.js b/bin/crowdnode.js index 4f8a479..193e7cd 100755 --- a/bin/crowdnode.js +++ b/bin/crowdnode.js @@ -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), ); }