Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

I can only deploy one secret contract on the network #113

Closed
lacabra opened this issue Apr 5, 2019 · 3 comments
Closed

I can only deploy one secret contract on the network #113

lacabra opened this issue Apr 5, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@lacabra
Copy link
Contributor

lacabra commented Apr 5, 2019

Describe the bug
I have multiple valid secret contracts that I can successfully deploy if I restart the network every time. However, once I have successfully deployed a contract on the network, any subsequent attempt to deploy any other contract (that would otherwise succeed if it was the first one), will fail with the following error:

core_1        | Error in deployment of smart contract function: Input Error: Cryptography Error: DecryptionError
core_1        | 06:38:16 [INFO] LOG DERIVE: Ok(FailedTask { result: FailedTask { output: "92ffb22994188d60a9538bbe0d9d3065de055abd524176d5ca339c1bab87c31ec39ba4856c76cefc6863655f6594df70848b615fcc7c1a5c542abb698f475319c2582a4fcb659ab3d59bb716", used_gas: 0, signature: "ec455b1f3f83b54d02b25c1e8f84154f68360860afcea5ed7f5fb7ba9370d0e4002fdd37b432374fb7760323bc7815ec7e08eaae20d6a259967c72521b7f41281b" } })
core_1        | building state for 1 contracts

To Reproduce
Deploy two different contracts consecutively.

Expected behavior
Should be able to deploy more than one contract on the network.

@elichai
Copy link
Contributor

elichai commented Apr 6, 2019

Are you making sure that core has the state keys? (using PTT)

@lacabra
Copy link
Contributor Author

lacabra commented Apr 7, 2019

See my answer to #114, as I believe it also applies here: I only control the client library, and it is not the responsibility of the client to manage the keys. I do confirm that the PTT works as expected when an epoch changes, but P2P probably does not trigger a new PTT request for the new contract (Cc: @lenak25)

@lacabra
Copy link
Contributor Author

lacabra commented Apr 10, 2019

I had misidentified this problem as something else. The underlying issue is that P2P does not request the state keys prior to passing the deployment task to core, so I'm closing this issue in favor of this other one in P2P.

@lacabra lacabra closed this as completed Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants