Skip to content

Commit

Permalink
chore: update attestation and make backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl committed Jan 8, 2025
1 parent 095449b commit 0149825
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/examples/04-storage/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from uagents import Agent, Context

agent = Agent(name="bob", endpoint="test", agentverse="http://localhost:8001")
agent = Agent(name="bob")


@agent.on_event("startup")
Expand Down
6 changes: 4 additions & 2 deletions python/src/uagents/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from cosmpy.aerial.client import LedgerClient
from cosmpy.aerial.wallet import LocalWallet
from cosmpy.crypto.address import Address
from pydantic import BaseModel
from pydantic import AliasChoices, BaseModel, Field

from uagents.config import (
ALMANAC_API_MAX_RETRIES,
Expand All @@ -33,7 +33,9 @@


class VerifiableModel(BaseModel):
agent_identifier: str
agent_identifier: str = Field(
validation_alias=AliasChoices("agent_identifier", "agent_address")
)
signature: Optional[str] = None
timestamp: Optional[int] = None

Expand Down

0 comments on commit 0149825

Please sign in to comment.