fix: create_flight_policy 계정 주소 버그 수정#61
Open
DaehyunKim96 wants to merge 1 commit into
Open
Conversation
- payer_token을 ATA 재유도 대신 저장된 leader_deposit_wallet 사용 - leader_pool_token을 leader_deposit_wallet 대신 leader_pool_wallet 사용
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.
목적
create_flight_policyAPI 서비스에서 잘못된 계정 주소를 사용하던 버그를 수정합니다.기존에는
payer_token_pubkey를 leader의 pubkey와 currency_mint로부터 ATA를 파생해 사용했으나, 실제로는leader_deposit_wallet주소를 직접 사용해야 합니다. 또한 두 번째 인자로 전달되는 풀 지갑 주소도leader_pool_wallet으로 올바르게 수정합니다.주요 변경사항
backend/src/api/service/mod.rs:create_flight_policy에서payer_token_pubkey를 ATA 파생 대신master_agreement.leader_deposit_wallet을 직접 파싱하도록 수정;leader_deposit_token인자를leader_pool_wallet에서 파싱한leader_pool_token_pubkey로 교체🤖 Generated with Claude Code