Skip to content

Commit

Permalink
fix: empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya-atatakai committed Feb 21, 2025
1 parent d06c106 commit c2c48e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/agent-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export function handleCreateAgent(event: CreateAgentEvent): void {
entity.transactionHash = event.transaction.hash

entity.save()

let mechAgent = MechAgent.load(event.params.agentId.toHexString());

if (mechAgent !== null) {
mechAgent.agentHash = event.params.agentHash;
mechAgent.save()
}
}

export function handleManagerUpdated(event: ManagerUpdatedEvent): void {
Expand Down

0 comments on commit c2c48e6

Please sign in to comment.