jorgenbuilder / ic-inspector

⭐⭐⭐⭐⭐ Chrome extension for decoding responses from the Internet Computer blockchain
https://chromewebstore.google.com/detail/ic-inspector/meaadkenfkhjakkkdapaallimhbdofck?hl=en&authuser=0
MIT License
52 stars 9 forks source link

Some calls are not displayed #30

Closed tarek-eg closed 2 years ago

tarek-eg commented 2 years ago

Hi, I have noticed that some calls are not displayed after the new upgrade. For example here on https://app.icpswap.com/swap, when swapping from WICP to XTC the network tab displays all the calls but not registered in the decoder tab.

image image

Thanks

jorgenbuilder commented 2 years ago

Thanks for the report! What I see when performing a swap seems to correspond to the network graph. This is trivial, but it's worth noting that you must have opened the Ic Inspector tab for capture to begin. Is it possible that's the cause of the behaviour you're seeing?

image
jorgenbuilder commented 2 years ago

I decided to look a bit deeper at this today, since I'd noticed a similar pattern of IC message calls that appear to be missing when using Plug. The reason certain calls appear to be missing is that Plug wallet executes IC messages in a separate background process, not in the main browser process. This is why the calls are missing from the network tab as well, not just the IC Inspector tab.

You can find the missing calls by inspecting the background process of the Plug chrome extension. Navigate to chrome://extensions/ and click:

Group 1 (12)

You jump over to the IC Inspector tab, and now you'll be able to see all the messages that Plug is handling:

image

@tarek-eg hope that helps!