Merge pull request #2023 from ethereum/yann300-patch-39

Fix copy the deploy payload to clipboard
pull/2025/head
David Disu 3 years ago committed by GitHub
commit 1b3589a123
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