rhinestonewtf / modulekit

Development Kit for building Smart Account Modules
https://docs.rhinestone.wtf/modulekit/
45 stars 26 forks source link

Better parsing of UserOp reverts #115

Open kopy-kat opened 2 months ago

kopy-kat commented 2 months ago

Problem

Currently, userOp reverts look like this:

UserOperationReverted(0x7453747a33d483b132819abfaa4732dd3dd611e270c0d3c85feffd59ff842c6a, 0x00000000000000000000000019F55f3FE4C8915F, 14363245936017037588052893425679083834600908858192589671274931995088737271810 [1.436e76], 0xb927fe5e00000000000000000000000008e2f9befeb86008a498ba29c3a70d1cf15fcda5)

 Solution

It would be ideal to make these more readable, eg by adding the label of the reverting contract and trying to decode the revert reason