From 4fdf4ad94fd7f7e8f3bf027e6d1a12500fe471f8 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 13 Jan 2022 12:54:01 +0530 Subject: [PATCH] fix input encoding --- libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index dd13a983ef..4bd6c7df96 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -62,13 +62,7 @@ export function ContractGUI (props: ContractGUIProps) { return 'cannot encode empty arguments' } const multiJSON = JSON.parse('[' + multiString + ']') - let encodeObj - - if (props.evmBC) { - encodeObj = txFormat.encodeData(props.funcABI, multiJSON, props.evmBC) - } else { - encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null) - } + const encodeObj = txFormat.encodeData(props.funcABI, multiJSON, null) if (encodeObj.error) { console.error(encodeObj.error) return encodeObj.error