Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Execute dry-run RPC of constructor before deployment of a contract #108

Open
cmichi opened this issue Jun 17, 2021 · 0 comments
Open

Execute dry-run RPC of constructor before deployment of a contract #108

cmichi opened this issue Jun 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@cmichi
Copy link

cmichi commented Jun 17, 2021

In use-ink/ink#821 we found that debug messages which are printed in contract constructors do not appear on the console. Debug messages in functions of an instantiated contract appear though. This is because

Debugging is not enabled during on-chain execution. Only during RPC calls.

In order to support debug messages in constructors the UI should execute a RPC dry-run of the constructor before deployment of a contract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant