trufflesuite / drizzle

Reactive Ethereum dapp UI suite
907 stars 238 forks source link

useCacheSend creating a temporary transaction object in the store, instead of updating the original one, on revert #104

Open kombos opened 3 years ago

kombos commented 3 years ago

I'm trying to send an obviously reverting transaction via metamask, hoping that once it fails, the transaction object (0x549c114599102731e70fee7bdc1f80471d236efafddaf0390c4965b6224ea9f0) mentioned in the 'transactions' property of the drizzle state, will update with the error details (status: error). But instead, it creates a temporary transaction object (TEMP_1603290812007) with the (status : error) while the original transaction object still shows (status : pending). . but in the 'confirmation' object of 'transactions' , it is updating the relevant tx data with (status: false). See screenshot below:

image

Network: ropsten versions: "@drizzle/react-components": "^1.5.1", "@drizzle/react-plugin": "^1.5.1", "@drizzle/store": "^1.5.3",