fix copy deploy payload to clipboard

pull/2023/head
yann300 3 years ago committed by GitHub
parent 57a34c0807
commit 7336be970f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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