Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Ensure CalldataDecodingInspector always passes through inspector options #6136

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

haltman-at
Copy link
Contributor

PR description

I noticed tonight that the CalldataDecodingInspector doesn't actually pass its inspector options through when inspecting intepretations as multicalls or etc. Oops. Changed that to pass that through. Also turned on the noHideAddress option in debug-utils, because we always use that option in the debugger.

Testing instructions

I'm going to be honest, I didn't really test this one, I wanted to get it up quick...

Breaking changes and new features

Because I changed the argument order of formatFunctionLike, which is exported, this is technically a breaking change to Codec (and indeed, I had to adjust the use in debug-utils appropriately).

It could be done in a non-breaking way, but that would be ugly. Arguably we should switch from positional params to named params, but that would also be breaking, and frankly I don't think it's worth the effort for something this small.

@gnidan
Copy link
Contributor

gnidan commented Jul 7, 2023

(This is why you should always used named options for everything all the time ;)

@haltman-at haltman-at merged commit 967ad43 into develop Jul 7, 2023
@haltman-at haltman-at deleted the transparent-interpretation branch July 7, 2023 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants