Skip to content

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Jul 28, 2025

Motivation

Closes: #11125

Solution

Make sure signatures are not returned empty, previously we were caching empty results ("") preventing refetching.

The query returned as follows:

query: [Error(0x37d01491)]
res: [[]]
len(res): 1

meaning 0x37d01491 got paired with [], yielding empty "" string when written to cache

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@zerosnacks zerosnacks marked this pull request as ready for review July 28, 2025 12:32
@zerosnacks zerosnacks added C-cast Command: cast T-bug Type: bug labels Jul 28, 2025
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense!

@zerosnacks zerosnacks merged commit 88b14a1 into master Jul 28, 2025
22 checks passed
@zerosnacks zerosnacks deleted the zerosnacks/fix-cast-signature-cache branch July 28, 2025 12:48
@github-project-automation github-project-automation bot moved this to Done in Foundry Jul 28, 2025
zerosnacks added a commit that referenced this pull request Jul 29, 2025
zerosnacks added a commit that referenced this pull request Jul 29, 2025
#11140)

Revert "fix(`cast`): unknown signatures are cached as an empty string (#11127)"

This reverts commit 88b14a1.
MerkleBoy pushed a commit to MerkleBoy/foundry that referenced this pull request Sep 17, 2025
…y-rs#11127)

* make sure signatures are not empty, previously we were caching empty results ("") preventing refetching

* add tests

* avoid duplicate code
MerkleBoy pushed a commit to MerkleBoy/foundry that referenced this pull request Sep 17, 2025
foundry-rs#11140)

Revert "fix(`cast`): unknown signatures are cached as an empty string (foundry-rs#11127)"

This reverts commit 88b14a1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cast Command: cast T-bug Type: bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Unknown signatures are cached as an empty string

2 participants