Skip to content

Commit

Permalink
chore: remove unnecessary use of parse_identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl committed Jan 17, 2025
1 parent f53156c commit 15a8b33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/src/uagents/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ def _get_balance(self) -> int:
async def register(self):
self._logger.info("Registering agents on Almanac contract...")
for record in self._records:
_, _, agent_address = parse_identifier(record.address)
record.sign(self._identities[agent_address])
record.sign(self._identities[record.address])

if self._get_balance() < REGISTRATION_FEE * len(self._records):
self._logger.warning(
Expand Down

0 comments on commit 15a8b33

Please sign in to comment.