Closed willfsays closed 4 years ago
@willfsays Confirmed on my end as well. BatchRequest does not work with MetaMask. Metamask batches the requests in the incorrect order. I've tested with a couple other web3 providers (fortmatic and portis) and they both honor the batch request order. To reproduce, try batching 3 or more send transactions. MetaMask will ask you to confirm the transactions in the following order: 1, 3, 2
cc: @danfinlay
Closing in favor of #5852.
Describe the bug When batching a request to approve (with an ERC 20) and then to send tokens, MetaMask reverses the request, you have to add the send to the batch first before the approve to make it work.
When firing the same two async requests without a batch, as per above, MetaMask reverses the request, you have to add the send to the batch first before the approve to make it work.
To Reproduce Steps to reproduce the behavior:
Expected behavior MetaMask will batch the requests in the order in which they are received
Browser details (please complete the following information):