Move.

Допис

Діліться своїми знаннями.

mssoni.
Mar 22, 2025
Питання та відповіді експертів

How to fix 'Package dependency does not specify a published address' in Move.toml?

I'm getting an error saying that the package dependency does not specify a published address when trying to publish my Move module. How do I specify the 'published-at' address in the Move.toml file?

  • Move CLI
1
1
Поділитися
Коментарі
.

Відповіді

1
Michelle .
Mar 22 2025, 13:19

Коли ви завантажуєте зовнішні пакети у своєму контракті, вам потрібно вказати їх опубліковану адресу. Додайте розділ у вашому файлі toml так:

[addresses]
sui = "0x2" // This is automatically derived and you don't need to add it
another_package = "0x123....89"
0
Коментарі
.

Ви знаєте відповідь?

Будь ласка, увійдіть та поділіться нею.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Пости231Відповіді
Sui.X.Peera.

Зароби свою частку з 1000 Sui

Заробляй бали репутації та отримуй винагороди за допомогу в розвитку спільноти Sui.

Кампанія винагородЛипень