Skip to content

Escrow sc#821

Merged
fnordspace merged 3 commits intoqubic:developfrom
baoLuck:feature/2026-04-06-escrow-sc
Apr 13, 2026
Merged

Escrow sc#821
fnordspace merged 3 commits intoqubic:developfrom
baoLuck:feature/2026-04-06-escrow-sc

Conversation

@baoLuck
Copy link
Copy Markdown
Contributor

@baoLuck baoLuck commented Apr 6, 2026

@Franziska-Mueller
Copy link
Copy Markdown
Collaborator

please provide a description of the SC in your PR description or link to the proposal

@baoLuck
Copy link
Copy Markdown
Contributor Author

baoLuck commented Apr 10, 2026

@Franziska-Mueller, done

Comment thread src/contracts/Escrow.h
while (locals.elementIndex != NULL_INDEX
&& locals.elementIndex2 < ESCROW_MAX_DEALS_PER_USER)
{
if (state.get()._deals.get(state.get()._ownerDealIndexes.element(locals.elementIndex), locals.tempDeal))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This potentially cause an infinite loop if this check is false ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In practice, this scenario shouldn’t occur, but you are right - it could potentially lead to an infinite loop. Fixed, thanks!

Copy link
Copy Markdown
Collaborator

@cyber-pc cyber-pc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you need to merge develop into this to resolve the conflict.

@fnordspace fnordspace merged commit 398ad44 into qubic:develop Apr 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants