DEV Community

Saeed Jaafari
Saeed Jaafari

Posted on

2 1

has no network configuration for its current network id (5777).

hi dear
i implement smart cobtract in vscode
i have error :

has no network configuration for its current network id (5777).
at evalmachine.<anonymous>:1:48
at Function.getter (c:\Users\Apple\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\contract\lib\contract\constructorMethods.js:282:1)
at Function.get (c:\Users\Apple\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\contract\lib\contract\properties.js:129:1)
at Function.getter (c:\Users\Apple\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\contract\lib\contract\constructorMethods.js:285:1)
at Function.network (c:\Users\Apple\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\contract\lib\contract\properties.js:108:1)

in truffle-config.js i entered :

development: {
host: '127.0.0.1', // Localhost (default: none)
port: 9545, // Standard Ethereum port (default: none)
network_id: '5777', // Any network (default: none)
},

but have error
plz help me
thanks

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay