@@ -153,9 +153,8 @@ const issueCollectionToken = async () => {
153153 exit ( 9 ) ;
154154 }
155155
156- const { smartContract, userAccount, signer, provider } = await setupNftSc (
157- smartContractAddress
158- ) ;
156+ const { smartContract, userAccount, signer, provider } =
157+ await setupNftSc ( smartContractAddress ) ;
159158
160159 const issueCollectionTokenTx = getNftIssueTransaction (
161160 signer . getAddress ( ) ,
@@ -192,9 +191,8 @@ const setLocalRoles = async () => {
192191 try {
193192 await areYouSureAnswer ( ) ;
194193
195- const { smartContract, userAccount, signer, provider } = await setupNftSc (
196- smartContractAddress
197- ) ;
194+ const { smartContract, userAccount, signer, provider } =
195+ await setupNftSc ( smartContractAddress ) ;
198196
199197 const assignRolesTx = getNftAssignRolesTransaction (
200198 signer . getAddress ( ) ,
@@ -270,9 +268,8 @@ const giveaway = async () => {
270268 ] ;
271269
272270 try {
273- const { smartContract, userAccount, signer, provider } = await setupNftSc (
274- smartContractAddress
275- ) ;
271+ const { smartContract, userAccount, signer, provider } =
272+ await setupNftSc ( smartContractAddress ) ;
276273
277274 const giveawayFile = getFileContents ( giveawayFileRelativePath , {
278275 noExitOnError : true ,
@@ -295,9 +292,8 @@ const giveaway = async () => {
295292 console . log ( 'You will be providing addresses by hand.' ) ;
296293 console . log ( ' ' ) ;
297294 await areYouSureAnswer ( ) ;
298- const { giveawayAddressList, giveawayTokensAmount } = await prompts (
299- promptQuestions
300- ) ;
295+ const { giveawayAddressList, giveawayTokensAmount } =
296+ await prompts ( promptQuestions ) ;
301297 addresses = giveawayAddressList ;
302298 amount = giveawayTokensAmount ;
303299 }
@@ -343,9 +339,8 @@ const setDrop = async () => {
343339 const { dropTokensAmount, dropTokensLimitPerAddressPerDrop } =
344340 await prompts ( promptQuestions ) ;
345341
346- const { smartContract, userAccount, signer, provider } = await setupNftSc (
347- smartContractAddress
348- ) ;
342+ const { smartContract, userAccount, signer, provider } =
343+ await setupNftSc ( smartContractAddress ) ;
349344
350345 const setDropTx = getSetDropTransaction (
351346 signer . getAddress ( ) ,
@@ -364,9 +359,8 @@ const setDrop = async () => {
364359const unsetDrop = async ( ) => {
365360 const smartContractAddress = getNftSCAddressFromOutputOrConfig ( ) ;
366361 try {
367- const { smartContract, userAccount, signer, provider } = await setupNftSc (
368- smartContractAddress
369- ) ;
362+ const { smartContract, userAccount, signer, provider } =
363+ await setupNftSc ( smartContractAddress ) ;
370364
371365 const unsetDropTx = getUnsetDropTransaction (
372366 signer . getAddress ( ) ,
@@ -385,9 +379,8 @@ const pauseMinting = async () => {
385379 try {
386380 await areYouSureAnswer ( ) ;
387381
388- const { smartContract, userAccount, signer, provider } = await setupNftSc (
389- smartContractAddress
390- ) ;
382+ const { smartContract, userAccount, signer, provider } =
383+ await setupNftSc ( smartContractAddress ) ;
391384
392385 const pauseMintingTx = getPauseMintingTransaction (
393386 signer . getAddress ( ) ,
@@ -406,9 +399,8 @@ const startMinting = async () => {
406399 try {
407400 await areYouSureAnswer ( ) ;
408401
409- const { smartContract, userAccount, signer, provider } = await setupNftSc (
410- smartContractAddress
411- ) ;
402+ const { smartContract, userAccount, signer, provider } =
403+ await setupNftSc ( smartContractAddress ) ;
412404
413405 const startMintingTx = getUnpauseMintingTransaction (
414406 signer . getAddress ( ) ,
@@ -441,9 +433,8 @@ const setNewPrice = async () => {
441433
442434 await areYouSureAnswer ( ) ;
443435
444- const { smartContract, userAccount, signer, provider } = await setupNftSc (
445- smartContractAddress
446- ) ;
436+ const { smartContract, userAccount, signer, provider } =
437+ await setupNftSc ( smartContractAddress ) ;
447438
448439 const changePriceTx = getSetNewPriceTransaction (
449440 signer . getAddress ( ) ,
@@ -463,9 +454,8 @@ const setNewPrice = async () => {
463454const claimDevRewards = async ( ) => {
464455 const smartContractAddress = getNftSCAddressFromOutputOrConfig ( ) ;
465456 try {
466- const { smartContract, userAccount, signer, provider } = await setupNftSc (
467- smartContractAddress
468- ) ;
457+ const { smartContract, userAccount, signer, provider } =
458+ await setupNftSc ( smartContractAddress ) ;
469459
470460 const claimDevRewardsTx = getClaimDevRewardsTransaction (
471461 smartContract ,
@@ -513,15 +503,13 @@ const changeBaseCids = async () => {
513503
514504 const smartContractAddress = getNftSCAddressFromOutputOrConfig ( ) ;
515505 try {
516- const { nftMinterImgCid, nftMinterMetaCid } = await prompts (
517- promptQuestions
518- ) ;
506+ const { nftMinterImgCid, nftMinterMetaCid } =
507+ await prompts ( promptQuestions ) ;
519508
520509 await areYouSureAnswer ( ) ;
521510
522- const { smartContract, userAccount, signer, provider } = await setupNftSc (
523- smartContractAddress
524- ) ;
511+ const { smartContract, userAccount, signer, provider } =
512+ await setupNftSc ( smartContractAddress ) ;
525513
526514 const changeBaseCidsTx = getChangeBaseCidsTransaction (
527515 signer . getAddress ( ) ,
@@ -553,9 +541,8 @@ const setNewTokensLimitPerAddress = async () => {
553541
554542 await areYouSureAnswer ( ) ;
555543
556- const { smartContract, userAccount, signer, provider } = await setupNftSc (
557- smartContractAddress
558- ) ;
544+ const { smartContract, userAccount, signer, provider } =
545+ await setupNftSc ( smartContractAddress ) ;
559546
560547 const setNewTokensLimitPerAddressTx =
561548 getSetNewTokensLimitPerAddressTransaction (
@@ -581,9 +568,8 @@ const enableAllowlist = async () => {
581568 try {
582569 await areYouSureAnswer ( ) ;
583570
584- const { smartContract, userAccount, signer, provider } = await setupNftSc (
585- smartContractAddress
586- ) ;
571+ const { smartContract, userAccount, signer, provider } =
572+ await setupNftSc ( smartContractAddress ) ;
587573
588574 const enableAllowlistTx = getEnableAllowlistTransaction (
589575 signer . getAddress ( ) ,
@@ -602,9 +588,8 @@ const disableAllowlist = async () => {
602588 try {
603589 await areYouSureAnswer ( ) ;
604590
605- const { smartContract, userAccount, signer, provider } = await setupNftSc (
606- smartContractAddress
607- ) ;
591+ const { smartContract, userAccount, signer, provider } =
592+ await setupNftSc ( smartContractAddress ) ;
608593
609594 const disableAllowlistTx = getDisableAllowlistTransaction (
610595 signer . getAddress ( ) ,
@@ -657,9 +642,8 @@ const getMintedPerAddressPerDrop = async () => {
657642const claimScFunds = async ( ) => {
658643 const smartContractAddress = getNftSCAddressFromOutputOrConfig ( ) ;
659644 try {
660- const { smartContract, userAccount, signer, provider } = await setupNftSc (
661- smartContractAddress
662- ) ;
645+ const { smartContract, userAccount, signer, provider } =
646+ await setupNftSc ( smartContractAddress ) ;
663647
664648 const claimScFundsTx = getClaimScFundsTransaction (
665649 signer . getAddress ( ) ,
@@ -689,9 +673,8 @@ const populateAllowlist = async () => {
689673 ] ;
690674
691675 try {
692- const { smartContract, userAccount, signer, provider } = await setupNftSc (
693- smartContractAddress
694- ) ;
676+ const { smartContract, userAccount, signer, provider } =
677+ await setupNftSc ( smartContractAddress ) ;
695678
696679 const allowlistFile = getFileContents ( allowlistFileRelativePath , {
697680 noExitOnError : true ,
@@ -743,9 +726,8 @@ const clearAllowlist = async () => {
743726 try {
744727 await areYouSureAnswer ( ) ;
745728
746- const { smartContract, userAccount, signer, provider } = await setupNftSc (
747- smartContractAddress
748- ) ;
729+ const { smartContract, userAccount, signer, provider } =
730+ await setupNftSc ( smartContractAddress ) ;
749731
750732 const itemsInAllowlistResponse = await scQuery (
751733 getAllowlistFunctionName ,
@@ -783,9 +765,8 @@ const removeAllowlistAddress = async () => {
783765
784766 await areYouSureAnswer ( ) ;
785767
786- const { smartContract, userAccount, signer, provider } = await setupNftSc (
787- smartContractAddress
788- ) ;
768+ const { smartContract, userAccount, signer, provider } =
769+ await setupNftSc ( smartContractAddress ) ;
789770
790771 const removeAllowlistAddressTx = getRemoveAllowlistAddressTx (
791772 signer . getAddress ( ) ,
0 commit comments