강의

멘토링

커뮤니티

Inflearn Community Q&A

ayun's profile image
ayun

asked

Blockchain programming (including coin creation) that even beginners can easily follow

How to use the payable keyword

deposit 함수 관련 질문

Resolved

Written on

·

344

0

deposit 함수 바디에 아무런 내용을 구현하지 않아도 작동이 되는 이유가 무엇인가요??

블록체인ethereumsolidity

Answer 1

1

dannyworld님의 프로필 이미지
dannyworld
Instructor

함수 속성자에 payable 키워드를 붙이면 ETH를 입금받을 수 있게 됩니다.
반면에 payable 키워드가 없으면 입금이 안됩니다.
(payable 제외, 넣고 한번 테스트해보세요)

ayun's profile image
ayun

asked

Ask a question