verifyChainId.js 399 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _convert = require("./convert");
  7. /**
  8. * Converts chainId to a hex if it is a number
  9. */
  10. function verifyChainId(chainId) {
  11. if (typeof chainId === 'number') chainId = (0, _convert.fromDecimalToHex)(chainId);
  12. return chainId;
  13. }
  14. var _default = verifyChainId;
  15. exports.default = _default;