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
  • Loading branch information
marc2332 committed Dec 18, 2024
1 parent 82ffdcc commit 546b507
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 `Address(${value})`;
} else {
throw new Error('Not a correct flattenable data');
}
return '';
})
.join(', ');
}

0 comments on commit 546b507

Please sign in to comment.