synapseweb3 / forcerelay

Apache License 2.0
10 stars 8 forks source link

refactor: abi err msg parse #388

Closed wenyuanhust closed 9 months ago

wenyuanhust commented 9 months ago

Closes: #274

Description

At present, if the call of solidity contract failed, things like this printed

Contract call reverted with data: 0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c74657374206661696c656420746f2063726561746520636c69656e7400000000

After this pr, following will be printed

test failed to create client

which makes error message more human friendly. I haven't found a rust crate to do it, so I parse 2 kinds of errors mannually.


PR author checklist:

Reviewer checklist:

blckngm commented 9 months ago

See #390 where I tried to address the aforementioned problems.

Flouse commented 9 months ago