Closed lacabra closed 5 years ago
@lacabra I see that the gas limit for this call is 1544. It is not enough. See gasLimit attribute here: https://github.com/enigmampc/enigma-p2p/blob/develop/docs/IPC_MESSAGES.md#computetask-message . When I tried this computation the used gas was 28023. In the case of deployment with empty constructor, I guess that gasLimit = 0 is enough, since in the current version we take gas only for the execution of the function and not for actions of deployment/computation.
Thanks @moriaab. I tried first with gas=100
and then tried with gas=100000
and both yielded the same error. I see now the 1544
and I don't know where that came from, I set it at 100000
, but I have something to investigate on my side...
Just to confirm, you are expecting an int
for gas, not an hex
value, correct?
Describe the bug
Core
throws the following error when trying to compute a task:To Reproduce The error above happens when trying to execute a secret contract across the network. The relevant steps to reproduce the behavior are the following:
construct()
addition(int32,int32)
[ [1, 'int32'], [2, 'int32'], ]
core
throws the error aboveExpected behavior I was expecting that the computation task would succeed, like the deploySecretContract succeeded.
Backtrace
Desktop (please complete the following information):