Skip to content
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

Fix transfer back asynccall #3015

Merged
merged 8 commits into from
Apr 16, 2021
Merged

Fix transfer back asynccall #3015

merged 8 commits into from
Apr 16, 2021

Conversation

sasurobert
Copy link
Contributor

add the value to the destination if async callback fails

@codecov
Copy link

codecov bot commented Apr 15, 2021

Codecov Report

Merging #3015 (773995c) into master (9550e58) will increase coverage by 0.00%.
The diff coverage is 75.00%.

❗ Current head 773995c differs from pull request most recent head 73abc5a. Consider uploading reports for the commit 73abc5a to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3015   +/-   ##
=======================================
  Coverage   75.08%   75.08%           
=======================================
  Files         629      629           
  Lines       60808    60826   +18     
=======================================
+ Hits        45658    45672   +14     
- Misses      11035    11037    +2     
- Partials     4115     4117    +2     
Impacted Files Coverage Δ
process/smartContract/process.go 69.39% <63.63%> (+0.10%) ⬆️
...ess/smartContract/builtInFunctions/esdtTransfer.go 62.42% <80.00%> (-0.08%) ⬇️
.../smartContract/builtInFunctions/esdtNFTTransfer.go 78.60% <100.00%> (+0.23%) ⬆️
process/smartContract/builtInFunctions/factory.go 40.20% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9550e58...73abc5a. Read the comment docs.

process/smartContract/builtInFunctions/esdtNFTTransfer.go Outdated Show resolved Hide resolved
process/smartContract/process.go Outdated Show resolved Hide resolved
@@ -1250,6 +1250,22 @@ func (sc *scProcessor) addBackTxValues(
scrIfError.Value = big.NewInt(0).Set(valueForSnd)
}

if sc.flagSenderInOutTransfer.IsSet() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

should use a bool var here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ccorcoveanu ccorcoveanu self-requested a review April 16, 2021 06:02
ccorcoveanu
ccorcoveanu previously approved these changes Apr 16, 2021
iulianpascalau
iulianpascalau previously approved these changes Apr 16, 2021
ccorcoveanu
ccorcoveanu previously approved these changes Apr 16, 2021
@LucianMincu LucianMincu merged commit 026576a into master Apr 16, 2021
@LucianMincu LucianMincu deleted the fix-transfer-back-asynccall branch April 16, 2021 10:25
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.

None yet

5 participants