From 0da7ba87ab72d1b5029a7be8407ddbbe8b1c0675 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 5 Sep 2023 02:44:41 -0300 Subject: [PATCH] fix: export getBridgeAbi function instead of abi object from the previous implementation --- dist/index.js | 4 ++-- src/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index cf1ff87..ae2682b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ "use strict";Object.defineProperty(exports, "__esModule", { value: true });Object.defineProperty(exports, "ContractParser", { enumerable: true, get: function () {return _ContractParser.ContractParser;} });Object.defineProperty(exports, "BcSearch", { enumerable: true, get: function () {return _BcSearch.BcSearch;} });Object.defineProperty(exports, "Contract", { enumerable: true, get: function () {return _Contract.default;} });exports.default = exports.abi = void 0;var _ContractParser = require("./lib/ContractParser"); var _BcSearch = require("./lib/BcSearch"); var _Contract = _interopRequireDefault(require("./lib/Contract")); -var _bridgeAbi = _interopRequireDefault(require("./lib/nativeContracts/bridgeAbi"));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} -const abi = { bridge: _bridgeAbi.default };exports.abi = abi;var _default = +var _bridgeAbi = require("./lib/nativeContracts/bridgeAbi");function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} +const abi = { bridge: _bridgeAbi.getBridgeAbi };exports.abi = abi;var _default = _ContractParser.ContractParser;exports.default = _default; \ No newline at end of file diff --git a/src/index.js b/src/index.js index bcf3c36..46dcf2a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ import { ContractParser } from './lib/ContractParser' import { BcSearch } from './lib/BcSearch' import Contract from './lib/Contract' -import bridge from './lib/nativeContracts/bridgeAbi' -const abi = { bridge } +import { getBridgeAbi } from './lib/nativeContracts/bridgeAbi' +const abi = { bridge: getBridgeAbi } export { ContractParser, BcSearch, Contract, abi } export default ContractParser