Skip to content

Commit

Permalink
cleanup: remove dupe tests, update lock and docs
Browse files Browse the repository at this point in the history
- Remove tests from `ripple-keypairs` that exclusively tested
`rippled-address-codec`. The tests in `codec.test.ts` and
`xrp-codec.test.ts` are all present and accounted for in
`packages/ripple-address-codec/test/xrp-codec.test.ts`.
- Update `package-lock.json` after the rebase with main
- Remove references to `decimal.js` in the documentation

This will clean up the diff for #2273
  • Loading branch information
ckniffen committed Oct 6, 2023
1 parent a832d14 commit 78c5009
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 161 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/ripple-binary-codec/src/types/amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MIN_XRP = new BigNumber('1e-6')
const mask = BigInt(0x00000000ffffffff)

/**
* decimal.js configuration for Amount IOUs
* BigNumber configuration for Amount IOUs
*/
BigNumber.config({
EXPONENTIAL_AT: [
Expand Down Expand Up @@ -207,7 +207,7 @@ class Amount extends SerializedType {
/**
* Validate IOU.value amount
*
* @param decimal Decimal.js object representing IOU.value
* @param decimal BigNumber object representing IOU.value
* @returns void, but will throw if invalid amount
*/
private static assertIouIsValid(decimal: BigNumber): void {
Expand Down
58 changes: 0 additions & 58 deletions packages/ripple-keypairs/test/codec.test.ts

This file was deleted.

99 changes: 0 additions & 99 deletions packages/ripple-keypairs/test/xrp-codec.test.ts

This file was deleted.

0 comments on commit 78c5009

Please sign in to comment.