UNPKG

@faast/tron-payments

Version:

Library to assist in processing tron payments, such as deriving addresses and sweeping funds

8 lines (7 loc) 144 B
/** Converts strings to Error */ export function toError(e: any): any { if (typeof e === 'string') { return new Error(e) } return e }