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

Contract deploy failing when Neo Express is not running and the --force flag is used #451

Open
lock9 opened this issue Jul 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lock9
Copy link
Contributor

lock9 commented Jul 11, 2024

Describe the bug
If I try to redeploy a contract that already exists using the --force flag when Neo Express is not running, the application will throw an error. This only happens if Neo Express is not running.

To Reproduce
Steps to reproduce the behavior:

  1. Use neoxp contract deploy nef -a account command with neoxp offline. It should work the first time.
  2. Repeat the command. It will fail with the following error: Inner InvalidOperationException: Contract Already Exists: 0xabfb9e99997b27283e4bd872986907c4c999740b
  3. Use neoxp run to start Neo Express
  4. Repeat the command. It will 'work', and an error message will appear Neo Express logs (however, the RPC node won't return an error)

Expected behavior
Using the force flag to deploy a contract when the node is not running.

please complete the following information

  • OS: macOS
  • Version: 3.7.3

Additional context
This problem appears to exist before version 3.7.3

@lock9 lock9 added the bug Something isn't working label Jul 11, 2024
@cschuchardt88 cschuchardt88 added this to the 3.8 milestone Jul 19, 2024
@cschuchardt88
Copy link
Member

cschuchardt88 commented Jul 22, 2024

you can use neoxp reset for work around

@cschuchardt88
Copy link
Member

Note: Need better error output for ExpressRPCServer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants