Skip to content

Commit

Permalink
Merge branch '1.0' into issue/1490
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida authored May 8, 2019
2 parents 432ae17 + 9fce68d commit 334c2b5
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 334c2b5

Please sign in to comment.