Skip to content

Commit 1b3589a

Browse files
authored
Merge pull request #2023 from ethereum/yann300-patch-39
Fix copy the deploy payload to clipboard
2 parents 57a34c0 + 7336be9 commit 1b3589a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export function ContractGUI (props: ContractGUIProps) {
6363
return 'cannot encode empty arguments'
6464
}
6565
const multiJSON = JSON.parse('[' + multiString + ']')
66-
const encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null)
66+
67+
const encodeObj = txFormat.encodeData(
68+
props.funcABI,
69+
multiJSON,
70+
props.funcABI.type === 'constructor' ? props.evmBC : null)
71+
6772
if (encodeObj.error) {
6873
console.error(encodeObj.error)
6974
return encodeObj.error

0 commit comments

Comments
 (0)