Use class instance to detect BigNumber.

This commit is contained in:
Richard Moore 2018-07-22 20:06:36 -04:00
parent 004fd7d37d
commit 7d4caa05ca
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -13,7 +13,7 @@ export const HashZero = '0x00000000000000000000000000000000000000000000000000000
function isBigNumber(value: any): value is BigNumber { function isBigNumber(value: any): value is BigNumber {
return !!value._bn; return (value instanceof BigNumber);
} }
function addSlice(array: Uint8Array): Uint8Array { function addSlice(array: Uint8Array): Uint8Array {