From b07f0e90d9f3cd791b2db72419931e3400475bdd Mon Sep 17 00:00:00 2001 From: fernandomg Date: Tue, 2 Jun 2020 09:04:29 -0300 Subject: [PATCH] use method `.call` only for the read methods - review screen then will attempt to evaluate the validity of the write method --- .../Balances/SendModal/screens/ContractInteraction/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/index.tsx b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/index.tsx index 2c945a0d..46bdcda7 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/index.tsx +++ b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/index.tsx @@ -38,9 +38,9 @@ const ContractInteraction = ({ contractAddress, initialValues, onClose, onNext } try { const txObject = createTxObject(selectedMethod, contractAddress, values) const data = txObject.encodeABI() - const result = await txObject.call({ from: safeAddress }) if (isReadMethod(selectedMethod)) { + const result = await txObject.call({ from: safeAddress }) setCallResults(result) // this was a read method, so we won't go to the 'review' screen