Skip to content

@celo/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Feb 12:17
· 180 commits to master since this release
14af256

Major Changes

  • #105 6b2e34c Thanks @aaronmgdr! - Remove export compareBN

    This would have been used to sort BN.js numbers. Generic comparator functions are not really the scope of this library. Removing it allows the bn.js dependency to be removed too. If you were using this function it can be re-implemented as

    export function compareBN(a: BN, b: BN) {
      if (a.eq(b)) {
        return 0
      } else if (a.lt(b)) {
        return -1
      } else {
        return 1
      }
    }