flipmeme-sdk 1.3.85 → 1.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -34687,6 +34687,10 @@ var EthereumConnector = class {
|
|
|
34687
34687
|
return __async(this, null, function* () {
|
|
34688
34688
|
var _a;
|
|
34689
34689
|
let endPrice = collection.endPrice;
|
|
34690
|
+
let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
|
|
34691
|
+
if (!isAvailable) {
|
|
34692
|
+
throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
|
|
34693
|
+
}
|
|
34690
34694
|
const startPrice = new Decimal2(endPrice).div(17).toFixed(0);
|
|
34691
34695
|
console.log(`Creating collection with startPrice: ${startPrice} and endPrice: ${endPrice}`);
|
|
34692
34696
|
let tx = yield this.factory.createCollection(
|