-
Notifications
You must be signed in to change notification settings - Fork 198
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
EN-8181/ReturnData-to-transfer-for-callback #2898
EN-8181/ReturnData-to-transfer-for-callback #2898
Conversation
cmd/node/config/config.toml
Outdated
# ReturnDataToLastTransferEnableEpoch represents the epoch when return data is added to last output transfer for callbacks | ||
ReturnDataToLastTransferEnableEpoch = 5 | ||
|
||
# ArwenESDTFunctionsEnableEpoch represents the epoch the new ESDT functions are enabled in arwen |
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.
the epoch when the new ?
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.
done
cmd/node/config/config.toml
Outdated
@@ -52,6 +52,12 @@ | |||
# BlockGasAndFeesReCheckEnableEpoch represents the epoch when gas and fees used in each created or processed block are re-checked | |||
BlockGasAndFeesReCheckEnableEpoch = 4 | |||
|
|||
# ReturnDataToLastTransferEnableEpoch represents the epoch when return data is added to last output transfer for callbacks |
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.
when returned
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.
done
process/smartContract/process.go
Outdated
@@ -1808,7 +1812,7 @@ func (sc *scProcessor) useLastTransferAsAsyncCallBackWhenNeeded( | |||
tx data.TransactionHandler, | |||
result *smartContractResult.SmartContractResult, | |||
) bool { | |||
if len(vmOutput.ReturnData) > 0 { | |||
if len(vmOutput.ReturnData) > 0 && sc.flagReturnDataToLastTransfer.IsSet() { |
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.
!sc.flagReturnDataToLastTransfer.IsSet() ?
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.
done
Added new flags and fixed a scenario which was not treated the same way as in arwen.