Skip to content

Commit

Permalink
Use empty string for unnamed parameters in JSON output instead of und…
Browse files Browse the repository at this point in the history
…efined (ethers-io#4248).
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent c703560 commit fffee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/abi/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ export class ParamType {
format(format?: FormatType): string {
if (format == null) { format = "sighash"; }
if (format === "json") {
const name = this.name || undefined; // @TODO: Make this "" (minor bump)
const name = this.name || "";

if (this.isArray()) {
const result = JSON.parse(this.arrayChildren.format("json"));
Expand Down

0 comments on commit fffee44

Please sign in to comment.