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

can we make comply.checkMethod public? #2858

Open
ixje opened this issue Jan 6, 2023 · 2 comments
Open

can we make comply.checkMethod public? #2858

ixje opened this issue Jan 6, 2023 · 2 comments
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent

Comments

@ixje
Copy link
Contributor

ixje commented Jan 6, 2023

I have a use-case in which I want to check if a contract has a subset of the required NEP-17 methods. This function seems to do 99% of what I'm looking for but 1. it's not exposed, could this be exposed?

func checkMethod(m *manifest.Manifest, expected *manifest.Method,
allowMissing bool, checkNames bool) error {

2. could we add an option to skip safe checking? I have a case where the contract wrongly specifies the safe flag but it still functions correctly. In a great world this contract would have been rejected during deploy, but we all know why that isn't there so I'm hoping to work around it without too much code duplication.

@roman-khimov
Copy link
Member

  1. Probably, but maybe what you really want is a flag for ComplyABI?
  2. I love links, so Compliance checks for manifested standards neo-project/neo#1883, yeah. But this flag feels like a bad idea to me. What's the problem there? Something that should be safe is not marked as safe?

@ixje
Copy link
Contributor Author

ixje commented Jan 8, 2023 via email

@roman-khimov roman-khimov added I3 Minimal impact U4 Nothing urgent enhancement Improving existing functionality S4 Routine labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants