on 4c8c607 help sign in
bridge/src/lib/patp2dec.js
11 lines 222 B history raw
1import ob from 'urbit-ob';
3import convertToInt from './convertToInt';
5/**
6 * Convert a patp string into a number, or throw.
7 *
8 * @throws
9 * @return number
10 */
11export default patp => convertToInt(ob.patp2dec(patp), 10);