react-native-box icon indicating copy to clipboard operation
react-native-box copied to clipboard

Missing /build/contracts/SimpleStorage.json

Open JustinJKlein opened this issue 6 years ago • 1 comments

I was trying to build the project after cloning it and ran into an issue.

react-native-box/src/Main/Home.js: could not resolve /react-native-box/build/contracts/SimpleStorage.json as a file nor as a folder.

There isn't any build folder in the repo and this is called from the main page. I am not sure why it was removed but it breaks the project. Let me know if its moved to a new location or if there is some other change that I need to make.

Thanks for sharing the repo!

JustinJKlein avatar Jun 05 '18 19:06 JustinJKlein

Hi, I recommend to first learn Solidity and and Truffle here: http://truffleframework.com/ following the tutorials in order to understand how Solidity, web3 and Truffle work together. Then using Truffle boxes will be easy.

To answer your question, you need to compile your contracts to create the build folder where the ABIs are stored. Simply do truffle compile to do this. Still I recommend you learn Truffle first.

darioAnongba avatar Jun 12 '18 11:06 darioAnongba