Skip to content

Module name is wrong and should change from defi to animeswap #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Iamknownasfesal opened this issue Dec 22, 2023 · 1 comment
Open

Comments

@Iamknownasfesal
Copy link

Iamknownasfesal commented Dec 22, 2023

When trying to use animeswap modules in sui network, you cannot use it since modules named as defi, not as animeswap:

[dependencies]
Sui = {git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "sui-v1.0.0", override = true}
animeswap = {git = 'https://github.com/AnimeSwap/sui-v1-core.git', subdir = ".", rev = 'v1.0.0'}

Error while using it:

Invalid 'use'. Unbound module: 'animeswap::animeswap_library'

Using as defi solves the issue:

use defi::animeswap_library

How to solve the issue?

By changing the move.toml:

[addresses]
defi = "0x0"
sui = "0x2"
std = "0x1"

to

[addresses]
animeswap = "0x0"
sui = "0x2"
std = "0x1"

And also Readme has an issue, the version should start with v, and animeswap needs to be all lowercase but in readme it looks like this:

[dependencies.animeSwap]
git = 'https://github.com/AnimeSwap/sui-v1-core.git'
rev = '1.0.0'

should be:

[dependencies.animeswap]
git = 'https://github.com/AnimeSwap/sui-v1-core.git'
rev = 'v1.0.0'
@Iamknownasfesal
Copy link
Author

@Azard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant