sourcify icon indicating copy to clipboard operation
sourcify copied to clipboard

[ui]: feature: Show bytecode diff in results

Open kuzdogan opened this issue 2 years ago • 0 comments

Whenever a verification fails we are only returning a simple error message that the bytecodes don't match. Users for now would contact us and the first thing we usually do is to debug and compare the contract bytecodes.

Ideally we should provide this debugging information to the user in a nicely presented way to see which parts of the bytecodes differ. This would also make things easier for us as a really quick way to see how and where the bytecodes differ, instead of setting up a VS Code debugging environment every time.

Manually we use git diff --word-diff --word-diff-regex=x <file-1> <file-2> to see the diff as below:

image

The online diff tool https://text-compare.com/ shows diffs like this:

image

View in Huly HI-418

kuzdogan avatar May 16 '23 08:05 kuzdogan