Skip to content

Commit

Permalink
fix(explorer): Fix not a correct flattenable data for string argume…
Browse files Browse the repository at this point in the history
…nts in txs (#4529)

* fix(explorer): Fix 'not a correct flattenable data' for string arguments in txs

* show them raw

* fmt
  • Loading branch information
marc2332 authored Dec 18, 2024
1 parent 504aa0b commit 0ae9833
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ export function flattenIotaArguments(data: (IotaArgument | IotaArgument[])[]): s
} else if ('NestedResult' in value) {
return `NestedResult(${value.NestedResult[0]}, ${value.NestedResult[1]})`;
}
} else if (typeof value === 'string') {
return value;
} else {
throw new Error('Not a correct flattenable data');
}
return '';
})
.join(', ');
}

0 comments on commit 0ae9833

Please sign in to comment.