Skip to content

Commit 4fdf4ad

Browse files
committed
fix input encoding
1 parent 3848038 commit 4fdf4ad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ export function ContractGUI (props: ContractGUIProps) {
6262
return 'cannot encode empty arguments'
6363
}
6464
const multiJSON = JSON.parse('[' + multiString + ']')
65-
let encodeObj
66-
67-
if (props.evmBC) {
68-
encodeObj = txFormat.encodeData(props.funcABI, multiJSON, props.evmBC)
69-
} else {
70-
encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null)
71-
}
65+
const encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null)
7266
if (encodeObj.error) {
7367
console.error(encodeObj.error)
7468
return encodeObj.error

0 commit comments

Comments
 (0)