Skip to content

Commit d545b41

Browse files
committed
fix exports
1 parent 2c5877e commit d545b41

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/CommandAction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import main from "./main";
1+
import parse from "./parse";
22

33
type CommandOpts = {
44
endpoint: string,
@@ -7,7 +7,7 @@ type CommandOpts = {
77

88
const CommandAction = async (txHash: string, { endpoint, types }: CommandOpts) => {
99
const typesArr = types.split(",").map(type => type.replace(/\s/g, ''));
10-
(await main({
10+
(await parse({
1111
txHash,
1212
endpoint,
1313
types: typesArr

src/export.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import main from "./main";
21
import offchainParse from "./offchainParse";
2+
import parse from "./parse";
33

4-
export default {
5-
parse: main,
4+
export {
5+
parse,
66
offchainParse
7-
}
7+
}
8+
export default parse;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Command } from "commander";
22
import CommandAction from "./CommandAction";
33
import defaultEndpoint from "./defaultEndpoint";
4-
import main from "./main";
4+
import main from "./parse";
55

66
const program = new Command();
77

src/main.ts renamed to src/parse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getContractAddress } from "@ethersproject/address";
22
import { ethers } from "ethers";
33
import offchainParse from "./offchainParse";
44

5-
async function main({txHash, endpoint, types}: {
5+
async function parse({txHash, endpoint, types}: {
66
txHash: string,
77
endpoint: string,
88
types: string[]
@@ -18,4 +18,4 @@ async function main({txHash, endpoint, types}: {
1818
});
1919
}
2020

21-
export default main;
21+
export default parse;

0 commit comments

Comments
 (0)