-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Private transactions] Cannot deploy private smart contract #9708
Comments
I could also reproduce it.
In the logs:
Can something be done about the gas cost of private contracts? (if this is not some kind of other bug) |
I'm unsure why you're experiencing something different between networks, but it appears that the tutorial attempts to hardcode the gas provided by the transaction: It is a fact that private contracts are significantly more costly to deploy, you are storing the entirity of encrypted bytecode onchain, and there's nothing to optimise there, however, tweaking the hardcoded gas value (or removing it) might help you. |
Thanks for feedbacks. But even if i remove the gas value, the cost is the same, and so the issue is the same, i cannot deploy it. So if i understand well, only very basic contracts can be used as private? |
I could deploy it with no issues on the live Tobalaba network:
So actually, not much gas was consumed |
Parity Ethereum version: Parity-Ethereum
Operating system: Linux
Installation: built from source with secretstore feature
Fully synchronized: yes
Network: Tobalaba
Restarted: yes
actual
I'm tested the private transactions tutorial https://github.com/ngyam/tutorial-secretstore-privatetx
on tobalaba_local
All steps on private transactions works well, but when i change the smart contract sample (Test.sol) by a new one, i cannot deploy the contracts with the error:
But the deployment of this contract works well in public mode (and cost half time gas)
Imported #133 0xab28…9de3 (1 txs, 0.44 Mgas, 1 ms, 2.12 KiB)
Code of the smart contract that cause the issue.
expected behavior
Smart contracts can be deployed
steps to reproduce
Follow the https://github.com/ngyam/tutorial-secretstore-privatetx, by replacing Test.Sol by the code above
The text was updated successfully, but these errors were encountered: