Skip to content

Commit

Permalink
Contract interaction: nested tuple values are not parsed properly (#1526
Browse files Browse the repository at this point in the history
)

contract interaction: nested tuple values are not parsed properly

Fixes #1512
  • Loading branch information
tom2drum authored Jan 30, 2024
1 parent c196134 commit f6ccec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/address/contract/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ function castValue(value: string, type: SmartContractMethodArgType) {
}

const isNestedArray = (type.match(/\[/g) || []).length > 1;
if (isNestedArray) {
const isNestedTuple = type.includes('tuple');
if (isNestedArray || isNestedTuple) {
return parseArrayValue(value) || value;
}

Expand Down

0 comments on commit f6ccec0

Please sign in to comment.