-
Notifications
You must be signed in to change notification settings - Fork 362
(Fix) Estimate gas for wallet connect #1806
Conversation
…to fix/estimate-gas-wallet-connect
…ng the estimation method if we are in a non-infura-supported network
CLA Assistant Lite All Contributors have signed the CLA. |
…or the already-open pr
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Travis automatic deployment: |
Travis automatic deployment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 . I like the new clearer and simpler implementation!
Travis automatic deployment: |
Travis automatic deployment: |
const InputAdornmentChildSymbol = ({ symbol }: { symbol?: string }): ReactElement => { | ||
return <>{symbol}</> | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaces web3 with web3ReadOnly in estimateGasWithRPCCall
Travis automatic deployment: |
Travis automatic deployment: |
Travis automatic deployment: |
Travis automatic deployment: |
Travis automatic deployment: |
Travis automatic deployment: |
Tested WC with Looks good to me, Didn't see the warning message if the tx would succeed. I saw the warning for a Tx builder type of tx that ended up failed (expected outcome) |
Travis automatic deployment: |
Closes #1784 by:
web.eth.call
as a way for doing the gas estimation, instead now it's using directly aneth_call
to infura. The reason it's that depending on the provider implementation the results are different, in some cases, likewalletConnect
eth_call
is not even implemented. I thought that a good way to fix this is just to use our own web3 with infura as provider, but for some reason, if we are usingwalletConnect
the result of theeth_call
has nodata
. So I decided to ignore web3 implementation and use directly infura with a post call.old react warnings
like the warning that appears when thesendFunds
modal is open