Skip to content

Commit

Permalink
adjust ethers6
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 committed May 29, 2024
1 parent 90cc1d1 commit 502a314
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules/**
output/**

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"license": "MIT",
"main": "./lib.commonjs/index.js",
"module": "./lib.esm/index.js",
"name": "ethers",
"name": "@sentio/ethers",
"publishConfig": {
"access": "public",
"tag": "latest"
Expand All @@ -128,7 +128,8 @@
"test-browser": "node lib.esm/_admin/test-browser",
"test-commonjs": "mocha --reporter ./reporter.cjs ./lib.commonjs/_tests/test-*.js",
"test-coverage": "c8 -o output -r lcov -r text mocha --no-color --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js | tee output/summary.txt",
"test-esm": "mocha --trace-warnings --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js"
"test-esm": "mocha --trace-warnings --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js",
"build-pub": "npm run build-all && npm run build-dist && npm publish --ignore-git-checks"
},
"sideEffects": false,
"version": "6.12.2"
Expand Down
8 changes: 5 additions & 3 deletions src.ts/abi/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,9 +864,11 @@ export class ParamType {
"invalid name", "obj.name", name);

let indexed = obj.indexed;
if (indexed != null) {
if (indexed == true) {
assertArgument(allowIndexed, "parameter cannot be indexed", "obj.indexed", obj.indexed);
indexed = !!indexed;
indexed = true;
} else {
indexed = false
}

let type = obj.type;
Expand Down Expand Up @@ -1045,7 +1047,7 @@ export abstract class NamedFragment extends Fragment {
}
}

function joinParams(format: FormatType, params: ReadonlyArray<ParamType>): string {
function joinParams(format: FormatType, params: ReadonlyArray<ParamType>): string {
return "(" + params.map((p) => p.format(format)).join((format === "full") ? ", ": ",") + ")";
}

Expand Down
2 changes: 2 additions & 0 deletions src.ts/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export type {
TransactionResponseParams,
} from "./formatting.js";

export * from "./format.js";

/*
export type {
CommunityResourcable
Expand Down

0 comments on commit 502a314

Please sign in to comment.