Skip to content

Conversation

james-toussaint
Copy link
Contributor

No description provided.

Comment on lines -147 to -148
.to.emit(iexecPoco, 'Transfer')
.withArgs(iexecPoco.address, kittyAddress, schedulerTaskStake)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have the same here ?

await expect(iexecPoco.claim(kittyFillingDeal.taskId))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much, I screened it first then moved on since test were OK.
I found a framework issue which forces us to check token balance changes before checking events, otherwise event checking never works ..!
We need to update that in both projects in next PRs (FYI @iExecBlockchainComputing/team-blockchain)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the point, we should keep in mind this !

Copy link
Contributor

@Le-Caignec Le-Caignec left a comment

Choose a reason for hiding this comment

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

Everything looks good to me. Another approach could have been to add a new function in the IExecEscrow contract named rewardAndLock().

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.68%. Comparing base (d443cc4) to head (0ac30f0).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #167      +/-   ##
===========================================
+ Coverage    84.67%   84.68%   +0.01%     
===========================================
  Files           35       35              
  Lines         1083     1084       +1     
  Branches       221      221              
===========================================
+ Hits           917      918       +1     
  Misses         166      166              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@james-toussaint james-toussaint merged commit 5ef8455 into develop Dec 18, 2024
5 checks passed
@james-toussaint james-toussaint deleted the feature/remove-unnecessary-transfers-in-poco2 branch December 18, 2024 08:46
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.

3 participants