Skip to content

Commit

Permalink
edit: minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNicolaeBucsa committed Oct 18, 2024
1 parent 0e9b3c5 commit 652bdb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/guides/agents/advanced/register-in-almanac.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Make sure you have read the following resources before going on with this guide:

</CodeGroup>

2. Then, import the `Agent` class from the `uagents` library to create an agent, and the `fund_agent_if_low` class from the `uagents.setup` module. This function will check if you have enough tokens to register in the Almanac contract, if not it will add testnet tokens to your `Fetch Network address`. Then, create an agent, `alice`; you need to provide the `name`, `seed`, `port` and `endpoint` parameters to correctly run it! The code will look similar to the following:
2. Open your terminal and `registration.py` file in an editor of your choice. Let's start by importing the `Agent` class from the `uagents` library to create our agent, and the `fund_agent_if_low` class from the `uagents.setup` module. This function will check if you have enough tokens to register in the Almanac contract, if not it will add testnet tokens to your `Fetch Network address`. Then, create an agent, `alice`, you need to provide the `name`, `seed`, `port` and `endpoint` parameters to correctly run it! The code will look similar to the following:

<GithubCodeSegment digest="2c6beabe5ec88375db41965c64bc5502">
<CodeSegment
Expand Down

0 comments on commit 652bdb8

Please sign in to comment.