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

Wrong parameters in Deployment of contract results in unreachable #9

Open
lacabra opened this issue May 2, 2019 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@lacabra
Copy link
Contributor

lacabra commented May 2, 2019

Describe the bug
Deploying a secret contract on the network passing a wrong set of parameters to the constructor results in an error in deployment reported as

core_1       | Error in deployment of smart contract function: Error in execution of WASM code: unreachable
core_1       | 17:54:42 [INFO] LOG DERIVE: Ok(FailedTask { result: FailedTask { output: "7bab741bea22ea9ce914ec7800481b503969936e4a1e32af810a6aa12f939fe2dff09482ef1e8081e811e934f0753ebcd1c2e9d04717cd27038ebe3e9af5c8ca4b4a4bb163c3d396", used_gas: 963, signature: "408c5fa05d4842049cc10350f460aa5bfbb488c65fa134b5e9dcc98df95d842f1c217d3d0e7933d28f2cb8094182067952a206dd48443e2687ffd8ded4d061e01c" } })

Note: this is a follow up to Issue 117 in core

To Reproduce
Steps to reproduce the behavior:

  1. Launch the network
  2. Run the following tests:
01_init.spec.js
03_deploy_fail_parameters.spec.js

Expected behavior
I would expect an error that would explicitly say something about the wrong set of parameters.

Otherwise confirm that this the desired behavior.

@lacabra lacabra added the bug Something isn't working label May 2, 2019
@moriaab
Copy link

moriaab commented May 3, 2019

This was already identified as core error. See scrtlabs/enigma-core#128, including @moriaab comment. (@lacabra)

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