Skip to content

Commit

Permalink
fix(launchpad): Instantiate contract, make input optional
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Feb 18, 2025
1 parent 8457d7b commit 2a1dd1f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/networks/teritori-testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const nftMarketplace: NFTMarketplace = {
const cosmwasmNftLaunchpadFeature: CosmWasmNFTLaunchpad = {
type: NetworkFeature.CosmWasmNFTLaunchpad,
launchpadContractAddress:
"tori1l07lh669x8wg2rh3pxzpatrr2npf5ql7y6kusaup53fu2xr68p5qglyy9t",
"tori1f62uv8zght6vnnq6kh3pg69xca9s03ecwpal7gquupf9knctk25suzf7rq",
launchpadEndpoint: "https://dapp-backend.testnet.teritori.com",
nftTr721CodeId: 60,
codeId: 95,
codeId: 96,
defaultMintDenom: "utori",
daoProposalSingleContractAddress:
"tori1tj2uked2zfq958w6cugnm44qlllnrpaaxk09j39qqdqhhedjpljszjyhx6",
"tori1huu2ysuct2e9xnmxc28xdwfeflytw2samzp95a2devjqs0qfj6fqx47v57",
};

const rakkiFeature: CosmWasmRakki = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ export const LaunchpadDetails: FC<Props> = ({ collectionForm }) => {
: [...projectTypes, item];
onChange(selectedProjectTypes);
}}
label="Project types"
label="Project type"
sublabel={
<BrandText style={[fontMedium13, { color: neutral55 }]}>
Multiple answers allowed
</BrandText>
}
style={{ zIndex: 2 }}
required
/>
<ErrorText>
{collectionForm.getFieldState("projectTypes").error?.message}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const instantiateNftLaunchpad = async ({
});
}
console.log(

Check warning on line 150 in packages/scripts/network-setup/nft-launchpad/deployNftLaunchpad.ts

View workflow job for this annotation

GitHub Actions / check-js

Replace `⏎····"CW·ADMIN·FACTORY·used:",⏎····network.cwAdminFactoryContractAddress,⏎··` with `"CW·ADMIN·FACTORY·used:",·network.cwAdminFactoryContractAddress`
"CW ADMIN FACTORY instantiated:",
"CW ADMIN FACTORY used:",
network.cwAdminFactoryContractAddress,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/types/launchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const ZodCollectionFormValues = z.object({
.trim()
.refine((value) => EMAIL_REGEXP.test(value), DEFAULT_FORM_ERRORS.onlyEmail)
.optional(),
projectTypes: z.array(z.string().trim()).min(1, DEFAULT_FORM_ERRORS.required),
projectTypes: z.array(z.string().trim()),
revealTime: z.number().optional(),
teamDescription: z.string().trim().optional(),
partnersDescription: z.string().trim().optional(),
Expand Down

0 comments on commit 2a1dd1f

Please sign in to comment.