explorer
explorer copied to clipboard
Read-only calls seem to be cached
Describe the bug When calling a read-only function multiple times, it seems that the function is only called the first time, then later calls simple return the cached result. This is misleading and confusing to users.
To Reproduce Steps to reproduce the behavior:
- Go to https://explorer.hiro.so/txid/0x388c45798274d14b936794174a84a375499f91eac988ae3cea4bf25bfbf92707?chain=testnet
- Click on 'Available functions'
- Click on 'foo'
- Enter 999999 as the height and click 'Call function'
- See expected result of
none - Click 'Cancel'
- Click 'foo' again
- Enter a real block height, e.g. 40000 and click 'Call function'
- See incorrect result,
none - Refresh the page and call again with 40000 and see different result,
(some u1726971846)
Expected behavior The read-only function should be called each time, unless the same input is passes, in which case, the result could be cached.