Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit e9e752f

Browse files
committed
working properly now
1 parent 26c5744 commit e9e752f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LoopMintSharp/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,18 @@
299299
CounterFactualNftInfo counterFactualNftInfo = new CounterFactualNftInfo
300300
{
301301
nftOwner = minterAddress,
302-
nftFactory = nftFactory,
302+
nftFactory = nftFactoryCollection,
303303
nftBaseUri = collectionResult.collections[0].collection.baseUri
304304
};
305305
var storageId = await minter.GetStorageIdAsync(loopringApiKey, accountId, maxFeeTokenId, verboseLogging);
306306
string currentCid;
307-
var offChainFeeToken = await minter.GetOffChainFeeAsync(loopringApiKey, accountId, 9, collectionResult.collections[0].collection.baseUri, verboseLogging);
308307
//currentCid will be null when the StreamReader reaches the end of file
309308
while ((currentCid = sr.ReadLine()) != null)
310309
{
311310
currentCid = currentCid.Trim();
312311
count++;
313312
Console.WriteLine($"Attempting mint {count} out of {lineCount} NFTs");
314-
var mintResponse = await minter.MintCollection(loopringApiKey, loopringPrivateKey, minterAddress, accountId, nftType, nftRoyaltyPercentage, nftAmount, validUntil, maxFeeTokenId, nftFactoryCollection, exchange, currentCid, verboseLogging, collectionResult.collections[0].collection.baseUri, collectionContractAddress, royaltyAddress, offChainFeeToken, counterFactualNftInfo, storageId);
313+
var mintResponse = await minter.MintCollection(loopringApiKey, loopringPrivateKey, minterAddress, accountId, nftType, nftRoyaltyPercentage, nftAmount, validUntil, maxFeeTokenId, nftFactoryCollection, exchange, currentCid, verboseLogging, collectionResult.collections[0].collection.baseUri, collectionContractAddress, royaltyAddress, offChainFee, counterFactualNftInfo, storageId);
315314
mintResponses.Add(mintResponse);
316315
Console.SetCursorPosition(0, Console.CursorTop - 1);
317316
if (!string.IsNullOrEmpty(mintResponse.errorMessage))

LoopMintSharp/Services/LoopringMintService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public async Task<MintResponseData> MintNft(
130130
bool verboseLogging,
131131
string royaltyAddress)
132132
{
133+
Thread.Sleep(250);
133134
var request = new RestRequest("api/v3/nft/mint");
134135
request.AddHeader("x-api-key", apiKey);
135136
request.AlwaysMultipartFormData = true;

0 commit comments

Comments
 (0)