Skip to content

feat(week-02): complete simple storage assignment and quiz#104

Open
HoonilP wants to merge 1 commit into
Bay-17th:mainfrom
HoonilP:gownj/week-02
Open

feat(week-02): complete simple storage assignment and quiz#104
HoonilP wants to merge 1 commit into
Bay-17th:mainfrom
HoonilP:gownj/week-02

Conversation

@HoonilP

@HoonilP HoonilP commented Apr 13, 2026

Copy link
Copy Markdown

구현 내용

  • SimpleStorage.soldeposit(), withdraw() 함수 구현
  • mapping, event, payable 패턴 적용
  • Quiz 10문제 답변 완료 (Transaction/서명 + Foundry)

테스트 결과

  • 7/7 테스트 통과 (fuzz test 포함)

배운 점

  • mapping을 활용한 사용자별 잔액 관리
  • event/emit을 통한 온체인 로깅
  • Foundry cheatcode (vm.prank, vm.deal, vm.expectRevert)

어려웠던 점

  • payable 함수에서 msg.value와 {value: ...} 구문의 관계 이해
  • fuzz test에서 vm.assume으로 입력 범위를 제한하는 개념

- Implement deposit() and withdraw() in SimpleStorage.sol
- All 7 tests passing including fuzz test
- Answer all 10 quiz questions (Transaction/Signature + Foundry)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant