-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you have functional component version of App.js? #8
Comments
I have reimplemented a version of this repo, using functional components and NextJS, brownie-next-mix you can give it a try if you like, let me know if you have any issues. |
I will 100% be trying this |
@rafael-abuawad I tried those out. It worked perfectly except on |
@vsevdrob That's strange, It should work on the kovan network. Maybe is one of these problems:
owner = accounts.load("main") to # Import config from browine
from brownie import config
def main():
if network.show_active() == 'kovan':
owner = accounts.add(config['wallets']['from_key'])
# ... I you tried both of those and still doesn't work, post the complete error message here, maybe is a gas issue 😕 while reading the contract. I will commit an updated version of the repo. Let me know if it solves the problem for you. |
@rafael-abuawad Thanks for the replies. I deployed the contracts by adding an account
So both functions don't want to run if it is concern of Steps what I did for trasparency:
|
@vsevdrob I'm not able to reproduce the issue on my machine, did you add the deployed addresses to the utils/contracts.js file. Maybe isn't fetching the addresses, although I have made some modification to the repo because I did get some issues on the Kovan testnet. Please, re-clone the repo, and try it on kovan. I've deployed both contracts to the Kovan network and until this afternoon was working properly. Just run npm install on the client folder and run npm run dev, try it on Kovan it should work out of the box. Please, let me know if you can make it work, and thank you for the feed back. 🙌🏻 |
@rafael-abuawad I re-cloned it just right now and ran everything again. It works now! 👍 |
@vsevdrob thats great!! I think the problem was that ehters.js couldn't load the deployed smart-contract from Kovan. Remember to update the utils/contracts.js file after you deployed a smart-contract. If you have any other issues let me know, I'm glad to help! 🙏🏻 |
@rafael-abuawad I tried to run 1 more time on |
Do you have functional component version of App.js?
The text was updated successfully, but these errors were encountered: