You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Launch gamma
Send the following throwing transaction (BenchmarkContract):
{
"ContractName": "BenchmarkContract",
"MethodName": "throw",
"Arguments": [
]
}
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.
The text was updated successfully, but these errors were encountered:
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
Launch gamma
Send the following throwing transaction (BenchmarkContract):
{
"ContractName": "BenchmarkContract",
"MethodName": "throw",
"Arguments": [
]
}
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.
The text was updated successfully, but these errors were encountered: