From 72215eea255acb32a6005a2083920d39447498b9 Mon Sep 17 00:00:00 2001 From: Calvin Chang Date: Tue, 9 Jan 2024 14:49:37 +0800 Subject: [PATCH 1/2] fix: set EvmBatchTxEditor's revert default value to false --- src/components/EvmEditors/EvmBatchTxEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EvmEditors/EvmBatchTxEditor.tsx b/src/components/EvmEditors/EvmBatchTxEditor.tsx index 288b1f6..b3bd711 100644 --- a/src/components/EvmEditors/EvmBatchTxEditor.tsx +++ b/src/components/EvmEditors/EvmBatchTxEditor.tsx @@ -31,7 +31,7 @@ const EvmBatchTxEditor = ({ setRequestObject, account, }: EvmBatchTxEditorProps): ReactJSXElement => { - const [revert, setRevert] = useState("true"); + const [revert, setRevert] = useState("false"); const [txs, setTxs] = useState([emptyTx]); useEffect(() => { From af7a2a8eca476668e2423ddb588f9ac9f5320d5a Mon Sep 17 00:00:00 2001 From: Calvin Chang Date: Tue, 9 Jan 2024 15:08:18 +0800 Subject: [PATCH 2/2] feat: sort revert flag's order --- src/components/EvmEditors/EvmBatchTxEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EvmEditors/EvmBatchTxEditor.tsx b/src/components/EvmEditors/EvmBatchTxEditor.tsx index b3bd711..f13a89b 100644 --- a/src/components/EvmEditors/EvmBatchTxEditor.tsx +++ b/src/components/EvmEditors/EvmBatchTxEditor.tsx @@ -21,8 +21,8 @@ interface EvmBatchTxEditorProps { } const RevertOptionMap: Record = { - true: true, false: false, + true: true, unset: undefined, }; const emptyTx = {};