Skip to content

Commit 96eaa03

Browse files
authored
Merge pull request #8 from Sentinel-Bluebuilder/claude/quirky-hofstadter-d0913b
fix(api): use ContractEventPayload.log.transactionHash in base watcher
2 parents 98bad9f + c300c2b commit 96eaa03

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ wallets.env
2929

3030
# Memory (local session state)
3131
memory/
32+
.test-wallet.json

api/src/base-watcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ export function startBaseWatcher(
110110
numDays: bigint,
111111
amount: bigint,
112112
_timestamp: bigint,
113-
event: ethers.EventLog,
113+
event: ethers.ContractEventPayload,
114114
) => {
115115
try {
116-
await processPaymentEvent(agentId, Number(numDays), amount, event.transactionHash, db, config, operator);
116+
await processPaymentEvent(agentId, Number(numDays), amount, event.log.transactionHash, db, config, operator);
117117
} catch (err) {
118118
console.error('[x402] Error processing payment event:', err);
119119
}

0 commit comments

Comments
 (0)