Commit f6ccec07 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Contract interaction: nested tuple values are not parsed properly (#1526)

contract interaction: nested tuple values are not parsed properly

Fixes #1512
parent c1961346
...@@ -129,7 +129,8 @@ function castValue(value: string, type: SmartContractMethodArgType) { ...@@ -129,7 +129,8 @@ function castValue(value: string, type: SmartContractMethodArgType) {
} }
const isNestedArray = (type.match(/\[/g) || []).length > 1; const isNestedArray = (type.match(/\[/g) || []).length > 1;
if (isNestedArray) { const isNestedTuple = type.includes('tuple');
if (isNestedArray || isNestedTuple) {
return parseArrayValue(value) || value; return parseArrayValue(value) || value;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment