Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
과제 제출 정보
주차: Week 04
과제 유형:
구현 내용
파운드리로 스마트 컨트랙트를 배포했고, abi를 받아와서 프론트엔드에 구현했다. 블록체인 데이터 읽기, 쓰기를 구현했다.
배운 점 (What I Learned)
이번 주에 배운 것 (2-3가지)
1.Web3 dApp의 전체적인 아키텍처와 통합 흐름 이해
파운드리를 통해 배포된 컨트랙트는 0과 1로 이루어져 있기 때문에, 웹사이트가 이를 인식하고 통신하기 위해서는 컨트랙트의 '진짜 주소'와 '사용 설명서(ABI)'를 프론트엔드 프로젝트 내부에 직접 가져와서 설정해 주어야 한다는 웹3 통신의 필수적인 구조를 배웠다.
2.스마트 컨트랙트 실제 배포 메커니즘
배포 명령어를 칠 때 --broadcast 옵션의 유무에 따른 차이를 명확히 알게 되었다. 단순히 가상으로 실행해 보는 시뮬레이션(Dry run)을 넘어, 실제로 가스비를 지불하고 블록체인 네트워크에 트랜잭션을 쏘아 올려(Broadcast) 영구적인 컨트랙트 주소를 발급받는 과정을 직접 해봤다..
3.라이브러리(Wagmi)를 활용한 블록체인 상호작용 및 트랜잭션 에러 핸들링
호출하려는 목적지 주소와 그곳에 실제 존재하는 기능(ABI의 함수명)이 정확히 일치해야만 메타마스크에서 트랜잭션 에러가 나지 않는다는 것을 깨달았다
어려웠던 점과 해결 방법
어려웠던 점:
해결 방법:
질문 사항
체크리스트
테스트
forge build성공forge test모든 테스트 통과제출 규칙
{username}/week-{XX}형식.env파일이 커밋에 포함되지 않음