Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

알고랜드 2세션 과제 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bestzion
Copy link

No description provided.

Copy link
Collaborator

@iskysun96 iskysun96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bestzion 시온님 여기 두개 커맨트에 힌트 써놨습니다 ㅎㅎ

assert mbr_pay.receiver == Global.current_application_address

itxn.AssetTransfer(
asset_receiver = Txn.sender,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

자 여기서 이 에셋에 옵트인을 해야하는 계정이 누구일까요? bootstrap 메서드를 호출한 계정일까요 앱계정일까요??

@@ -165,5 +210,22 @@ def buy(
이번 문제는 함수 정의까지 다 구현해주세요! 함수 이름은 withdraw_and_delete로 해주세요.
"""
# 문제 5 시작
"*** 여기에 코드 작성 ***"
@arc4.abimethod(allow_actions=["DeleteApplication"])
def withdraw_and_delete(self, asset: Asset) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전달값으로 asset을 넣지말구 global state에 기록한 asset_id를 사용하세요! withdraw_and_delete 메서드는 전달값이 없는 메서드입니다.

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.

2 participants