Skip to content

error at test contract #6043

Answered by Nlferu
muhammet72 asked this question in Q&A
Aug 22, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @muhammet72

Some tips and examples for you below:

for (uint borrower = borrowersLength[tokenId] - 1; borrower >= 0; borrower--) {
                    if (cert.tokenIdToBorrowToEnd[cert.tokenIdToBorrowers[borrower]] < block.timestamp) {
                        licenseStatusUpdater(tokenId, cert.tokenIdToBorrowers[borrower]);
                    }
                }

LicenseStatusUpdater function:

 // Removing borrower from array of borrowers for given tokenId
        for (uint i = 0; i < cert.tokenIdToBorrowers.length; i++) {
            if (cert.tokenIdToBorrowers[i] == borrower) {
                emit LicenseRemoved(borrower, tokenId);
                // Swapping borrower to be removed …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@muhammet72
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by muhammet72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants