-
-
Save 738/880407cdd3dcf44818a78c7ee58fed18 to your computer and use it in GitHub Desktop.
This file contains 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
// CookieManager 클래스 안의 함수입니다. | |
// 운세들을 저장합니다. 스마트 컨트랙트를 배포한 주소가 아니면 운세들을 저장할 수 없습니다. | |
save(fortunes) { | |
// ... | |
} | |
// 운세를 뽑아 유저의 히스토리에 저장합니다. | |
crackCookie() { | |
// ... | |
} | |
// 유저의 히스토리를 반환합니다. | |
getHistory(address) { | |
// ... | |
} | |
// address와 block의 height에 따라서 어떤 운세를 보여줄지 결정합니다. | |
_hash(address) { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment