Skip to content

Commit

Permalink
remove default export from generated bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
zianksm committed Dec 11, 2022
1 parent 51106aa commit 64877a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"/dist"
],
"scripts": {
"build": "npx tsc"
"build": "npx tsc",
"go": "npm run build && npm publish"
},
"keywords": [
"ethereum",
Expand Down
2 changes: 1 addition & 1 deletion src/implementation/typescript/class-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class TypescriptClassParser {
}
public parse(name: string, body: string) {
const importDirective = 'import * as ethers from "ethers"';
const classSignature = `export default class ${name} `;
const classSignature = `export class ${name} `;
const contract = importDirective.concat(
NEWLINE,
NEWLINE,
Expand Down

0 comments on commit 64877a7

Please sign in to comment.