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.js
CHANGED
|
@@ -34741,6 +34741,10 @@ var EthereumConnector = class {
|
|
|
34741
34741
|
return __async(this, null, function* () {
|
|
34742
34742
|
var _a;
|
|
34743
34743
|
let endPrice = collection.endPrice;
|
|
34744
|
+
let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
|
|
34745
|
+
if (!isAvailable) {
|
|
34746
|
+
throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
|
|
34747
|
+
}
|
|
34744
34748
|
const startPrice = new import_decimal2.default(endPrice).div(17).toFixed(0);
|
|
34745
34749
|
console.log(`Creating collection with startPrice: ${startPrice} and endPrice: ${endPrice}`);
|
|
34746
34750
|
let tx = yield this.factory.createCollection(
|