The issue: pasting ABI of encoded function may read and show invalid arguments in the UI.
The reason: last saved value stored in signature-cache2, which includes all decoded values of the last input, is returned if it matches the function selector of the given ABI.
Instead we should only take function signature from the cache if anything is found and then decode given ABI encoded function call.
The issue: pasting ABI of encoded function may read and show invalid arguments in the UI. The reason: last saved value stored in
signature-cache2
, which includes all decoded values of the last input, is returned if it matches the function selector of the given ABI.Instead we should only take function signature from the cache if anything is found and then decode given ABI encoded function call.
Bug:
https://github.com/user-attachments/assets/f8a40b18-ad2e-45a7-bd12-80c8f6b4ecc8
Bug solved:
https://github.com/user-attachments/assets/a9760ecb-9dbb-427f-b969-76817dcda479