You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we assign one variable to another and test the new variables properties, we should know that the same applies to the previous variable:
/** * @param {Object} opts * @param {Array<CoreUtxo>?} [opts.inputs] * @param {Number} [opts.satoshis] * @param {Number} [opts.now] - ms */functionmustSelectInputs({ inputs, satoshis, now =Date.now()}){if(inputs){returninputs;}letfullTransfer=!satoshis;<===satoshisisassignedtofullTransfer,whichistestedfortruthy-nessif(fullTransfer){letmsg=`'satoshis' must be a positive number unless 'inputs' are specified`;leterr=newError(msg);throwerr;}letcoins=wallet.utxos();inputs=DashApi.selectOptimalUtxos(coins,satoshis);<===shouldknowthatsatoshisisNOTundefinedif(!inputs.length){throwcreateInsufficientFundsError(coins,satoshis);}returninputs;}
The text was updated successfully, but these errors were encountered:
If we assign one variable to another and test the new variables properties, we should know that the same applies to the previous variable:
The text was updated successfully, but these errors were encountered: