(Feature) - #1048 Tx will fail warning#1675
Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
Yes, it's possible, but not here, we are doing that on this pr. Until now we didn't differentiate between creation and execution of the transactions in order to estimate the gas or see if the tx will fail based on the returned gas value (<= 0). We just had the difference between tx approval and tx execution. You should be able to check that on that pr. In this pr you would receive a warning just when executing, or in case that you need to do an on-chain signature, a warning in case that sign process will fail.
I didn't found a case in which this happens, could you send steps? |
|
Travis automatic deployment: |
@Agupane What I did is:
The same with the Compound Safe app when supplying 1 Rinkeby day to compound https://rinkeby.etherscan.io/tx/0xd5696dc1d44548b3e74def6adacb78fb3bf80a561da80561cacb39fc32f1c810 |
|
Travis automatic deployment: |
|
Should be fixed now @tschubotz |
…r-gas-calculation # Conflicts: # src/routes/safe/components/Transactions/TxsTable/ExpandedTx/ApproveTxModal/index.tsx
|
Travis automatic deployment: |
|
Travis automatic deployment: |
(Feature) Refactor gas calculation
|
@francovenica we will need another check in this PR |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
The cases from before work now for me 👏 |
|
I wasn't able to use the hash Tobi provided, but I used one from an ERC20 I've created I transfer some of those tokens to the safe. |
|
CC to @Agupane @fernandomg The issue I found is that the message is not working properly with the "Spending limit" feature So steps would be: Is expected: The review step shows how much gas this tx will need |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
Closes #1048 by:
checkIfTxWillFailto show/hide a red warning on theapproveTxModaluseCheckIfTransactionWillFailhook that will receivetxData,safeAddressandtxRecipientand will try to estimate the gas for executing it, in case the returned gas is bellow 0, it will return trueNote: this PR won't add the new signing flow
Looks like this now: