chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
13 lines • 513 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toDecimal = toDecimal;
const decimal_js_1 = __importDefault(require("decimal.js"));
function toDecimal(value) {
if (typeof value == 'bigint')
return new decimal_js_1.default(value.toString());
return new decimal_js_1.default(value);
}
//# sourceMappingURL=NumberLike.js.map