Skip to content

Fix AgentRegister wallet binding deadline — 3600 → 300 seconds #588

@realproject7

Description

@realproject7

Bug

PR #584 fixed the deadline in the new AgentManage.tsx (300 seconds) but the original AgentRegister.tsx still has the wrong deadline on line 112:

const deadline = BigInt(Math.floor(Date.now() / 1000) + 3600); // WRONG: 1 hour

The ERC-8004 contract enforces a maximum 5-minute deadline. Wallet binding during new agent registration (Step 3) will revert on-chain.

Fix

In src/components/AgentRegister.tsx line 112, change 3600 to 300:

const deadline = BigInt(Math.floor(Date.now() / 1000) + 300);

Branch

task/588-register-deadline-fix

Acceptance criteria

  • Deadline changed from 3600 to 300 in AgentRegister.tsx
  • Build passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions