-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow configuring accounts to show full calldata when signing #2523
base: main
Are you sure you want to change the base?
Conversation
1be0350
to
26e14d1
Compare
|
||
class CalldataRepr(str, Enum): | ||
full = "full" | ||
abridged = "abridged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to add "decoded" here and it will attempt to decode the calldata if possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decoded would be amazing tbh
@BowTiedDevil was saying the same yesterday
return self.to_string() | ||
|
||
def to_string( | ||
self, calldata_repr: Optional[Union[Literal["full"], Literal["abridged"]]] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this use CalldataRepr
enum?
|
||
|
||
@register(Config) | ||
def config_class(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if this instead should be a "core config" item, e.g.
display:
transactions: abridged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly since behavior isn't just limited to ape-accounts
What I did
How I did it
How to verify it
Checklist