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

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