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
Summary
The problem is in pwCore.send() method when adding {feeRate: 1100} (for example)
Related to Builder.calcFee() --->
const fee = (feeRate / FEE_BASE) * txSize;
return new models_1.Amount(fee.toString(), models_1.AmountUnit.shannon);
Returned error: SyntaxError: Cannot convert 742.5000000000001 to a BigInt
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I think the problem is with fee.toString()
I'm using ${value} when creating a new Amount()
Need to be reproduced and re-checked
The problem is in pwCore.send() method when adding {feeRate: 1100} (for example)
Related to Builder.calcFee() --->
const fee = (feeRate / FEE_BASE) * txSize;
return new models_1.Amount(fee.toString(), models_1.AmountUnit.shannon);
Returned error: SyntaxError: Cannot convert 742.5000000000001 to a BigInt
I think the problem is with fee.toString()
I'm using
${value}
when creating a new Amount()Need to be reproduced and re-checked
@sking789 @louzhixian
The text was updated successfully, but these errors were encountered: