diff --git a/contracts/baseFactory/contract.ts b/contracts/baseFactory/contract.ts index ef4e965..6a28ab0 100644 --- a/contracts/baseFactory/contract.ts +++ b/contracts/baseFactory/contract.ts @@ -91,7 +91,7 @@ export const baseFactory = (client: SigningCosmWasmClient, txSigner: string): Ba sender: txSigner, contract: contractAddress, msg, - funds: [coin(updatable ? '3000000000' : '1000000000', 'ustars')], + funds: [coin(updatable ? '3000000000' : '250000000', 'ustars')], } } diff --git a/contracts/baseMinter/contract.ts b/contracts/baseMinter/contract.ts index c986daa..fdcb384 100644 --- a/contracts/baseMinter/contract.ts +++ b/contracts/baseMinter/contract.ts @@ -249,7 +249,7 @@ export const baseMinter = (client: SigningCosmWasmClient, txSigner: string): Bas label: string, ): Promise => { const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', { - funds: [coin('1000000000', 'ustars')], + funds: [coin('250000000', 'ustars')], }) return { contractAddress: result.contractAddress, diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 98d01ba..fb6a099 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -138,7 +138,10 @@ const CollectionCreationPage: NextPage = () => { setReadyToCreateBm(true) }) .catch((err) => { - toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } }) + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + if (!err.message.includes('Insufficient wallet balance')) + toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } }) + else toast.error(`${err.message}`, { style: { maxWidth: 'none' } }) setReadyToCreateBm(false) }) } catch (error: any) { @@ -500,7 +503,7 @@ const CollectionCreationPage: NextPage = () => { messages: baseFactoryMessages, txSigner: wallet.address, msg, - funds: [coin(collectionDetails?.updatable ? '3000000000' : '1000000000', 'ustars')], + funds: [coin(collectionDetails?.updatable ? '3000000000' : '250000000', 'ustars')], updatable: collectionDetails?.updatable, } await baseFactoryDispatchExecute(payload) @@ -881,7 +884,7 @@ const CollectionCreationPage: NextPage = () => { : 3000000000 : collectionDetails?.updatable ? 3000000000 - : 1000000000 + : 250000000 if (amountNeeded >= Number(wallet.balance[0].amount)) throw new Error( `Insufficient wallet balance to instantiate the required contracts. Needed amount: ${( diff --git a/pages/contracts/baseMinter/instantiate.tsx b/pages/contracts/baseMinter/instantiate.tsx index 4bcaaa5..1deac6c 100644 --- a/pages/contracts/baseMinter/instantiate.tsx +++ b/pages/contracts/baseMinter/instantiate.tsx @@ -145,7 +145,7 @@ const BaseMinterInstantiatePage: NextPage = () => { return toast.promise( contract .use(BASE_FACTORY_ADDRESS) - ?.createBaseMinter(wallet.address, msg, [coin('1000000000', 'ustars')]) as Promise, + ?.createBaseMinter(wallet.address, msg, [coin('250000000', 'ustars')]) as Promise, { loading: 'Instantiating contract...', error: 'Instantiation failed!',