Skip to content

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

@Iamknownasfesal

Description

@Iamknownasfesal

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions