Skip to content

Commit

Permalink
Merge 61e0832 into 14d7775
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida committed May 8, 2019
2 parents 14d7775 + 61e0832 commit f325c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-utils/src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import BN from 'bn.js';
* @returns {Boolean}
*/
export const isBN = (object) => {
return object instanceof BN || (object && object.constructor && object.constructor.name === 'BN');
return BN.isBN(object);
};

/**
Expand Down

0 comments on commit f325c50

Please sign in to comment.