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

fix: Fixed IsWriteAccount method #138

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

Volodymyr-Kuchinskyi
Copy link
Contributor

  • Resolves: #

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits are signed
  • Tests included/updated or not needed
  • Documentation (manuals or wiki) has been updated or is not required

@@ -79,7 +79,7 @@ func (t *TransformKind) ParseAsWriteTransfer() (*WriteTransfer, error) {
}

func (t *TransformKind) IsWriteAccount() bool {
return strings.Contains(string(*t), "Write") && strings.Contains(string(*t), "Account")
return strings.Contains(string(*t), "WriteAccount") || strings.Contains(string(*t), `"Write"`) && strings.Contains(string(*t), `"Account"`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add some test to cover that case

@Volodymyr-Kuchinskyi Volodymyr-Kuchinskyi merged commit 30f15cb into master Feb 5, 2025
3 checks passed
@Volodymyr-Kuchinskyi Volodymyr-Kuchinskyi deleted the fix/write-account branch February 5, 2025 12:28
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.

2 participants