Use class instance to detect BigNumber.
This commit is contained in:
parent
004fd7d37d
commit
7d4caa05ca
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user