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 (#4248).
  • Loading branch information
ricmoo committed Jul 24, 2023
1 parent 5bf7b34 commit 8c2652c
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 8c2652c

Please sign in to comment.