aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/utils/index.ts
blob: 8fe7f968566927ecf1864f45a942e6e1775a6f68 (plain) (blame)
1
2
3
4
5
6
7
8
import { BigNumber } from '@0xproject/utils';

export function bigNumbertoStringOrNull(n: BigNumber): string | null {
    if (n == null) {
        return null;
    }
    return n.toString();
}