fix copy deploy payload to clipboard

pull/5370/head
yann300 3 years ago committed by GitHub
parent 122b47aa26
commit 15aa13a4e7
  1. 7
      libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

@ -63,7 +63,12 @@ export function ContractGUI (props: ContractGUIProps) {
return 'cannot encode empty arguments'
}
const multiJSON = JSON.parse('[' + multiString + ']')
const encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null)
const encodeObj = txFormat.encodeData(
props.funcABI,
multiJSON,
props.funcABI.type === 'constructor' ? props.evmBC : null)
if (encodeObj.error) {
console.error(encodeObj.error)
return encodeObj.error

Loading…
Cancel
Save