aboutsummaryrefslogblamecommitdiffstats
path: root/packages/order-utils/src/utils.ts
blob: 3b465ceced30584d06d4beda30566e456204d930 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                  
export const utils = {
    getSignatureTypeIndexIfExists(signature: string): number {
        // tslint:disable-next-line:custom-no-magic-numbers
        const signatureTypeHex = signature.slice(-2);
        const base = 16;
        const signatureTypeInt = parseInt(signatureTypeHex, base);
        return signatureTypeInt;
    },
};