Open ClementWalter opened 2 years ago
execute
is for write operation and will always make a tx on the network
to read, you use read
sorry for this; I could not find this sort of info in the doc, do you think that it would be better to add something in it?
agree, documentation need to improve. there should also be a better error message, I ll re-open so I get to at least improve the current state
Describe the bug
In a deploy script, after deployment, I am trying to execute a given function of the contract. One of these functions does not work when called with
execute
while usingethers
it does work.To Reproduce Steps to reproduce the behavior:
Expected behavior The
execute
should work forgetLayer
as it does forsetLayers
.versions
Additional context
I am not affiliated with the Chain Runners projet, I am just trying to play around with their rendering contract. I have extracted this MWE from my personal repo: https://github.com/ClementWalter/light-runners