Skip to content

Wrong parameters in Deployment of contract results in unreachable #9

@lacabra

Description

@lacabra

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions