@@ -151,7 +158,7 @@ export const BaseMinterDetails = ({ onChange, minterType }: BaseMinterDetailsPro
className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio5"
>
- Create a New Base Minter Contract
+ Create a New 1/1 Collection
@@ -170,27 +177,49 @@ export const BaseMinterDetails = ({ onChange, minterType }: BaseMinterDetailsPro
className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio6"
>
- Use an Existing Base Minter Contract
+ Append a New Token to an Existing 1/1 Collection
{baseMinterAcquisitionMethod === 'existing' && (
-
-
-
+
+
+
+
+
+
+
+
+ No previous 1/1 collections were found. You may create a new 1/1 collection or fill in the minter
+ contract address manually.
+
+
+
+
+
+ Please connect your wallet first.
+
+
+
+
)}
diff --git a/contracts/baseMinter/contract.ts b/contracts/baseMinter/contract.ts
index 7ebfcd4..ac5d3c6 100644
--- a/contracts/baseMinter/contract.ts
+++ b/contracts/baseMinter/contract.ts
@@ -141,8 +141,12 @@ export const baseMinter = (client: SigningCosmWasmClient, txSigner: string): Bas
})
console.log(factoryParameters.params.mint_fee_bps)
- const price = (await getConfig()).config.mint_price.amount
- console.log(price)
+ const price = (await getConfig()).config?.mint_price.amount
+ if (!price) {
+ throw new Error(
+ 'Unable to retrieve a valid mint price. It may be that the given contract address does not belong to a Base Minter contract.',
+ )
+ }
console.log((Number(price) * Number(factoryParameters.params.mint_fee_bps)) / 100)
const res = await client.execute(
senderAddress,
diff --git a/package.json b/package.json
index efd16a6..d2c8451 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "stargaze-studio",
- "version": "0.3.5",
+ "version": "0.3.6",
"workspaces": [
"packages/*"
],
diff --git a/pages/collections/actions.tsx b/pages/collections/actions.tsx
index cf529bf..5c50eda 100644
--- a/pages/collections/actions.tsx
+++ b/pages/collections/actions.tsx
@@ -88,7 +88,7 @@ const CollectionActionsPage: NextPage = () => {
toUtf8(Buffer.from(Buffer.from('contract_info').toString('hex'), 'hex').toString()),
),
{
- loading: 'Retrieving Minter type...',
+ loading: 'Retrieving minter type...',
error: 'Minter type retrieval failed.',
success: 'Minter type retrieved.',
},
diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx
index f6336e6..20bf22f 100644
--- a/pages/collections/create.tsx
+++ b/pages/collections/create.tsx
@@ -935,9 +935,9 @@ const CollectionCreationPage: NextPage = () => {
}}
type="button"
>
-