We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57a34c0 + 7336be9 commit 1b3589aCopy full SHA for 1b3589a
libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx
@@ -63,7 +63,12 @@ export function ContractGUI (props: ContractGUIProps) {
63
return 'cannot encode empty arguments'
64
}
65
const multiJSON = JSON.parse('[' + multiString + ']')
66
- const encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null)
+
67
+ const encodeObj = txFormat.encodeData(
68
+ props.funcABI,
69
+ multiJSON,
70
+ props.funcABI.type === 'constructor' ? props.evmBC : null)
71
72
if (encodeObj.error) {
73
console.error(encodeObj.error)
74
return encodeObj.error
0 commit comments