Add feeInSatsPerByte as a param in the sendBch function. This allows unit tests to use a constant.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCfab1e777785a: [Cashtab] Make tx fee in sats/byte a param
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- add-fee-as-param
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 15022 Build 29995: Build Diff cashtab-tests Build 29994: arc lint + arc unit
Event Timeline
web/cashtab/src/hooks/__tests__/useBCH.test.js | ||
---|---|---|
47 | Nit: the above comment and variable are no longer necessary, expect(calcFee(BCH, utxosMock, 2, 1.01)).toBe(378); is just as easy to read and understand imo |