728x90
Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan.
Error: *** Deployment Failed ***
"Migrations" -- Returned error: ENOENT: no such file or directory
아까는 배포가 되었다가 안됐던 이유가
가나슈 네트워크 연결한 7545에서 테스트넷(Ropsten테스트 네트워크로 하면된다길래..) 해보겠다고 다른거로 바꿔놔서 그랬다.
배포명령어가 좀 다르긴한대 비슷비슷하네 명령어 정리 해보자
truffle migrate --network development
아까는 명령어 문제인가 싶어서 위에 껄로 하긴 했는데 이건상관없는 거였음( truffle migrate 평소대로 이거해도같음)
명령어
//truffle프로젝트 초기화
truffle init
//각 네트워크에 배포된 컨트랙트의 주소표시
truffle networks
//컨트랙트 배포
truffle deploy
//개발모드로 접속(ganache-cli실행)
truffle develop
//모든 명령목록, 특정명령에 대한 정보를 표시
truffle help
배포
truffle migrate
재배포시
truffle migrate --reset
(truffle deploy is an alias for truffle migrate. They both do the same thing.
별칭같은 거래 둘이 같대.)
728x90
'블록체인 > 솔리디티' 카테고리의 다른 글
IPFS로 ERC-721 NFT를 구축하는 방법 따라하기(에러 해결 ERC721,DeclarationError) (0) | 2022.03.01 |
---|---|
ParserError: Expected primary expression 오류 (0) | 2022.02.28 |
call 로우레벨 함수, Delegate call개념 (0) | 2022.02.28 |
payable (생성자에 넣기, 특정계정 권한주기, 함수수정modifier) (0) | 2022.02.27 |
이더리움 송금 스마트컨트랙트 코드(이더잔액: 주소.balance, msg.value:송금액,msg.sender:보내는자) (0) | 2022.02.26 |