Skip to content

Conversation

@BellringerQuinn
Copy link
Contributor

so that we throw an argument exception and make it easier to diagnose a common issue where users were providing an ABI in the wrong format

…t exception and make it easier to diagnose a common issue where users were providing an ABI in the wrong format
@pkieltyka
Copy link
Member

pkieltyka commented Sep 26, 2024

nice work.. I think even better.. just port the code https://github.com/0xsequence/ethkit/blob/master/ethcoder/events_parser.go#L38

to C# .. as you will see, its just string manipulation.

I propose name the function, ParseABISelector instead of ParseEventDef.. I think that "selector" is a better name for this, as its for functions and events.

then, you can handle any input and it will just work, it wont error for users :)

its 350 LOC

@BellringerQuinn BellringerQuinn requested a review from a team November 4, 2024 16:40
@BellringerQuinn BellringerQuinn requested a review from a team as a code owner November 4, 2024 16:40
caballoninja
caballoninja previously approved these changes Jan 28, 2025
Copy link
Contributor

@andygruening andygruening left a comment

Choose a reason for hiding this comment

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

Looks good to me, works fine for the "redeem" function ABI.

@andygruening andygruening merged commit 5c62291 into master Feb 5, 2025
1 check failed
@andygruening andygruening deleted the Fix/regexValidateAbi branch February 5, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants