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

System contract does not deploy when initial transaction fails #1364

Open
vistra opened this issue Oct 7, 2019 · 0 comments
Open

System contract does not deploy when initial transaction fails #1364

vistra opened this issue Oct 7, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vistra
Copy link
Collaborator

vistra commented Oct 7, 2019

Describe the bug

It appears that when the network receives a system contract transaction for the first time - if it fails, the smart contract is not (lazily) deployed, and subsequent query commands will fail (the contract deployment rolls back). It does deploy if the transaction succeeds.

Not sure if this is an intentional behaviour.

Steps To Reproduce

  1. Launch gamma

  2. Send the following throwing transaction (BenchmarkContract):
    {
    "ContractName": "BenchmarkContract",
    "MethodName": "throw",
    "Arguments": [
    ]
    }

  3. Send the same transaction, but as a query.

Expected behavior

The first and second steps should fail in a similar fashion with ERR_SMART_CONTRACT,
but the second one (querying) fails with ERROR_CONTRACT_NOT_DEPLOYED.

@vistra vistra added the bug Something isn't working label Oct 7, 2019
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

2 participants