launchpad
launchpad copied to clipboard
Build Error when using `v3.1.0` minter and factory contract packages
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`
| |_____________|
This new release should fix it https://github.com/public-awesome/launchpad/releases/tag/v3.2.9