feat(week-01): complete counter assignment#85
Open
Dodaji wants to merge 1 commit intoBay-17th:mainfrom
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 01
구현 내용
배운 점 (What I Learned)
이번 주에 배운 것 (2-3가지)
nonce가 재전송 공격을 어떻게 방어하는지 구조를 파악했습니다.public,view키워드가 가스를 소모하는 방식과 생명 주기의 차이를 알게 되었습니다.어려웠던 점과 해결 방법
어려웠던 점:
처음 블록체인 상에서 실행되는 '트랜잭션'과 '가스(Gas)'라는 비용 메커니즘을 전통적 데이터베이스 개념과 매칭하며 이해하는 것이 조금 낯설고 헷갈렸습니다.
해결 방법:
Counter 실습 예제(
increment,decrement) 코드를 한 줄씩 분석하면서 상태 변화(Storage 변경)가 발생할 때만 가스 비용이 크게 발생한다는 점을 직관적으로 연결해 가며 이해할 수 있었습니다.