Skip to content

Commit 2abcdae

Browse files
committed
Phase 1に戻す(Avalanche Fuji - EIP-7702未対応のため)
理由: - Avalanche FujiはEIP-7702未対応 - Transaction Type 0x04をリジェクト - Phase 2実装は完成しているが、対応チェーン待ち Phase 1実装(動作する): - Agent EOA使用 - TrafficAgentContract直接呼び出し - マイクロペイメント対応 - 完全に機能 Phase 2実装(準備完了): - eip-7702-correct.ts: 完成 - authorizations.json: User署名済み - Sepolia等の対応チェーンで使用可能 ドキュメント: - DUAL_NETWORK_SETUP.md: 両対応の計画 - Phase 2は将来のネットワーク対応時に有効化
1 parent 54abcfa commit 2abcdae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/server/services/ai-to-ai-negotiation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,20 +388,20 @@ async function executePayment(
388388
transcript.push('[System] Simulated payment (contracts not deployed)');
389389
transcript.push(`[System] ${amount} JPYC: User ${buyer.agentId} → User ${seller.agentId}`);
390390
} else {
391-
// Phase 2実装: authorizationListでUser EOA呼び出し
392-
console.log('[Payment] Executing payment (Phase 2: EIP-7702)');
393-
console.log('[Payment] Agent → User EOA via authorization');
391+
// Phase 1: Avalanche Fuji(EIP-7702未対応)
392+
// Phase 2実装コードは eip-7702-correct.ts に完成済み
393+
console.log('[Payment] Executing payment (Phase 1: Avalanche Fuji)');
394+
console.log('[Payment] Agent EOA → TrafficAgentContract');
394395

395-
const txHash = await executeEIP7702BidCorrect(
396+
const txHash = await executeEIP7702Bid(
396397
agentKey as `0x${string}`,
397-
userEOA,
398398
seller.wallet as Address,
399399
amount,
400400
locationId
401401
);
402402

403403
transcript.push(`[System] Payment confirmed: ${txHash}`);
404-
transcript.push(`[System] ${amount} JPYC: User ${userEOA.substring(0, 10)}... → ${seller.wallet.substring(0, 10)}...`);
404+
transcript.push(`[System] ${amount} JPYC sent via blockchain`);
405405
}
406406
} catch (error) {
407407
console.error('[Payment] Error:', error);

0 commit comments

Comments
 (0)