Open
Conversation
Author
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
과제 유형:
구현 내용
4주차때는 1주차 때 만들었던 counter를 기반으로 dapp을 만들었는 데 이번 5주차 과제인 ETH전송 기능을 넣으려니 counter와는 어울리지 않는다는 판단 하에 2주차때 만들었던 SimpleStorage파일을 기반으로 다시 전송가능한 dapp을 만들었습니다. counter.tsx를 없애고 SimpleStorage.tsx를 다시 작성해준 후에 SimpleStorage에 입,출금을 가능하게 구현하였습니다.
배운 점 (What I Learned)
이번 주에 배운 것 (2-3가지)
1.이더리움에서는 내부적으로 wei 단위를 사용하기 때문에 프론트에서 입력받은 ETH 값을 parseEther로 wei로 변환해야 한다는 것을 배웠습니다. 또한 컨트랙트에서 읽어온 잔액은 wei 단위이므로 formatEther를 사용하여 사용자에게 ETH 단위로 표시한다는 것을 알게 되었습니다.
2.React 프론트에서 writeContract 함수를 사용하면 사용자의 지갑을 통해 스마트컨트랙트 함수를 호출하고 트랜잭션을 발생시킬 수 있다는 것을 알게 되었습니다. .
어려웠던 점과 해결 방법
어려웠던 점:
4주차에는 간단한 테스트를 하기 위해 로컬 테스트넷인 anvil을 사용하였는 데 이번에는 sepolia를 사용하려 하니 .env파일과 같이 추가해줘야 하는 파일이 존재하여 많이 해맸습니다.
해결 방법:
gpt를 통해 추가해줘야 하는 파일을 작성하였으며 이 과정에서 개인키와 같은 데이터는 gpt에게 공개하지 않는 선에서 물어보고 만들어 나갔습니다.
체크리스트
제출 규칙
{username}/week-{XX}형식.env파일이 커밋에 포함되지 않음