Skip to content

Conversation

@odyslam
Copy link
Contributor

@odyslam odyslam commented Aug 24, 2022

It detected the following string as address (as it could convert it to H160)

0000000000000000000000000000000000001337

EDIT: Included another fix for null values

@joshieDo
Copy link
Collaborator

Can we maybe add some unit tests over to testdata/cheats or similar ?

@onbjerg onbjerg added the T-bug Type: bug label Aug 24, 2022
Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

@odyslam
Copy link
Contributor Author

odyslam commented Aug 25, 2022

We should be good to merge this @joshieDo @gakonst

@gakonst gakonst merged commit cc67024 into foundry-rs:master Aug 25, 2022
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
* fix: address false positive

* fix: refactor for unstable warning

* fix: correct encoding of null values

* chore: add test for non-address H160

* fix: correct use-case to be string, not bytes

* chore: forge fmt

Co-authored-by: Georgios Konstantopoulos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-bug Type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants