Skip to content
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

Build Error when using v3.1.0 minter and factory contract packages #616

Open
JakeHartnell opened this issue Sep 15, 2023 · 1 comment
Open

Comments

@JakeHartnell
Copy link
Contributor

Working on a contract to launch a DAOs with Stargaze minters, and came across the following build error when adding base-minter and base-factory crates to this contract's Cargo.toml (probably seems to exist for all v3.1.0 minter and factories).

As a work around I'm using v2.4.0 for the time being, but would like to be able to use the latest. sg-std has moved to the core repo, but seems to be missing the math module? I see v3.1.1 has been released but it's not yet available on crates.io (not sure if it has a fix).

10 | use sg_std::math::U64Ext;
   |             ^^^^ could not find `math` in `sg_std`

error[E0599]: no method named `bps_to_decimal` found for type `u64` in the current scope
   |
308 | /         factory_params
309 | |             .extension
310 | |             .airdrop_mint_fee_bps
311 | |             .bps_to_decimal()
    | |             -^^^^^^^^^^^^^^ method not found in `u64`
    | |_____________|
@shanev
Copy link
Member

shanev commented Sep 17, 2023

This new release should fix it https://github.com/public-awesome/launchpad/releases/tag/v3.2.9

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

2 participants