-
Notifications
You must be signed in to change notification settings - Fork 14
Remove unnecessary back and forth transfers in IexecPoco2Delegate
#167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary back and forth transfers in IexecPoco2Delegate
#167
Conversation
.to.emit(iexecPoco, 'Transfer') | ||
.withArgs(iexecPoco.address, kittyAddress, schedulerTaskStake) |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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 !
There was a problem hiding this 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().
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
No description provided.