gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source.
https://gno.land/
Other
881 stars 364 forks source link

Should we allow smart contract access file system? It is not deterministic. #219

Closed piux2 closed 2 years ago

piux2 commented 2 years ago

gno/stdlibs/io/ioutil/ioutil.gno

https://github.com/gnolang/gno/blob/8cbba0a349d9ac7c3d41f1ffa97790168f0884fd/stdlibs/io/ioutil/ioutil.gno#L56

https://github.com/gnolang/gno/blob/8cbba0a349d9ac7c3d41f1ffa97790168f0884fd/stdlibs/io/ioutil/ioutil.gno#L43

moul commented 2 years ago

No, we shouldn’t

Do you want to make a fix PR for this?

piux2 commented 2 years ago

I looked at it again. the read file and directory method have already been commented out. not an issue anymore