fix: 지갑 UI 필드명/응답 구조 불일치 수정
All checks were successful
Client CI/CD / test (push) Successful in 9s
Client CI/CD / deploy (push) Successful in 13s

서버 실제 응답과 프론트엔드 필드명이 맞지 않아 공개키 미표시,
인벤토리/마켓 TypeError 발생하던 버그 수정.

- WalletTab: public_key→pubKeyHex, private_key→privateKey
- InventoryTab: 배열→객체(slots) 구조 대응
- AssetsTab: 페이지네이션 응답, tradeable, active_listing_id, template_id
- MarketTab: ID 목록→개별 getListing 호출, listing_id→id, asset_id
- WalletSummary: 페이지네이션 + 인벤토리 객체 구조 대응
- chain.js: getListing() 함수 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 14:41:07 +09:00
parent 60be6e1d39
commit 1691638fe9
6 changed files with 139 additions and 117 deletions

View File

@@ -51,6 +51,10 @@ export async function getMarketListings() {
return apiFetch('/api/chain/market');
}
export async function getListing(id) {
return apiFetch(`/api/chain/market/${id}`);
}
function idempotentPost(path, body) {
return apiFetch(path, {
method: 'POST',