Not able to deploy my contract #4896
Answered
by
alymurtazamemon
AnugrahYadav
asked this question in
Q&A
-
This is the error which I am continuously getting in my bash terminal after compiling the code
These are the code lines I have checked them multiple times but not able to find the error .. If anyone finds something please help me |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Feb 22, 2023
Replies: 3 comments 1 reply
-
@AnugrahYadav Install this ethers.js version; npm i --save-dev ethers@5.7.2 or yarn add --dev ethers@5.7.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alymurtazamemon
-
hey Thanks for the solution if actually worked but now I am getting some
network error
```
***@***.***:/mnt/c/Users/Asura_Anugrah/Desktop/Blockchain_Practice/ethers.js$
node deploy.js
Deploying your Contract , Please wait....!!!!
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR,
version=providers/5.7.2)
at Logger.makeError
***@***.***/logger/lib/index.js:238:21)
at Logger.throwError
***@***.***/logger/lib/index.js:247:20)
at JsonRpcProvider.<anonymous>
***@***.***/providers/lib/json-rpc-provider.js:609:54)
at step
***@***.***/providers/lib/json-rpc-provider.js:48:23)
at Object.throw
***@***.***/providers/lib/json-rpc-provider.js:29:53)
at rejected
***@***.***/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
}
```
Do you know how to solve it
…On Wed, Feb 22, 2023 at 10:27 PM Ali Murtaza ***@***.***> wrote:
@AnugrahYadav <https://github.com/AnugrahYadav> Install this ethers.js
version;
npm i --save-dev ***@***.***
or
yarn add --dev ***@***.***
—
Reply to this email directly, view it on GitHub
<#4896 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQFYMOV2UHYU2SZNUMCO6ULWYZAOZANCNFSM6AAAAAAVESP27Y>
.
You are receiving this because you were mentioned.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/4896/comments/5079432
@github.com>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey Thanks for the support actually I had to change my server to wifi then
it worked but thanks a lot for you quick help and support . I really
appreciate you for this and hope to become a good BlockChain Developer and
help the community back
…On Wed, Feb 22, 2023 at 10:45 PM Ali Murtaza ***@***.***> wrote:
@AnugrahYadav <https://github.com/AnugrahYadav> checkout this discussion
for it #286
<#286>
—
Reply to this email directly, view it on GitHub
<#4896 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQFYMOWWOGK5KT2TKXEDHETWYZCSXANCNFSM6AAAAAAVESP27Y>
.
You are receiving this because you were mentioned.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/4896/comments/5079633
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@AnugrahYadav Install this ethers.js version;
or