프로그래밍 농장

[Solidity ] remix 테스트넷 연결 문제(Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC) / can't detect injected web3 본문

블록체인

[Solidity ] remix 테스트넷 연결 문제(Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC) / can't detect injected web3

Tennessee201 2022. 5. 19.
728x90

솔리디티를 개발하기 위해 테스트넷을 사용하는 경우가 빈번한데, 하나는 세계적으로 운영되고 있는 rinkby과 같은

테스트넷을 사용하거나 혹은 로컬에 체인을 만들어서 운용할 수 있다.

 

그중 테스트넷에 지갑을 연결하여 작성한 스마트계약을 배포하려할때, 아래와 같은 에러가 발생할때가있다.

' can't detect injected web3 '

 

스택오버플로우에서의 답변은 아래와 같다. 

HTTPS won't let you connect to TestRPC running on HTTP. So you need to run the IDE with HTTP.

한마디로 textRPC 환경에 연결하려면 remix를 http 붙혀서 돌리라는 뜻이다. 

http://remix.ethereum.org/

 

위와 같이 재접속후 작성한 계약을 테스트넷에 배포하기위해 환경을 바꿔주면 정상적으로 연결이 가능한것을 확인가능하다. 

 

REMIX | Not possible to connect to the Web3 Provider

I had an error to run on web3 provider (localhost:8545) Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). So I figured out...

stackoverflow.com

728x90

'블록체인' 카테고리의 다른 글

머클트리 (Merkel Tree) 에 대하여  (0) 2022.05.25
flutter crypto wallet  (0) 2022.05.24
코엑스 IT 박람회 후기  (0) 2022.05.18
DTO(Data Transfer Object) 정의 및 사용 방법  (0) 2022.05.17
솔리디티 mapping [ Solidity ]  (0) 2022.05.16