Skip to content
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

Avoid regex for smart contract checking #1196

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Avoid regex for smart contract checking #1196

merged 1 commit into from
Oct 4, 2024

Conversation

shargon
Copy link
Member

@shargon shargon commented Oct 4, 2024

No description provided.

@shargon shargon requested a review from Jim8y October 4, 2024 10:10
{
var baseType = classSymbol.BaseType;
while (baseType != null)
{
if (pattern.IsMatch(baseType.ToString() ?? string.Empty))
if (baseType.ToString() == "Neo.SmartContract.Framework.SmartContract")
Copy link
Member Author

Choose a reason for hiding this comment

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

This method checks the hierarchy

@Jim8y Jim8y merged commit d99de6b into master Oct 4, 2024
4 checks passed
@Jim8y Jim8y deleted the avoid-regex branch October 4, 2024 10:29
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.

3 participants