-
Notifications
You must be signed in to change notification settings - Fork 204
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
esdt improvements integration #5806
esdt improvements integration #5806
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## feat/esdt-improvements #5806 +/- ##
==========================================================
+ Coverage 80.36% 80.40% +0.04%
==========================================================
Files 710 710
Lines 94310 94310
==========================================================
+ Hits 75789 75830 +41
+ Misses 13227 13186 -41
Partials 5294 5294 ☔ View full report in Codecov by Sentry. |
@@ -697,9 +697,9 @@ func (handler *enableEpochsHandler) createAllFlagsMap() { | |||
}, | |||
common.DynamicESDTFlag: { | |||
isActiveInEpoch: func(epoch uint32) bool { | |||
return epoch >= handler.enableEpochsConfig.NFTStopCreateEnableEpoch | |||
return epoch >= handler.enableEpochsConfig.DynamicESDTEnableEpoch |
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.
unit test?
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.
Added
} | ||
|
||
// SetTokenType does nothing as this is a disabled component | ||
func (d *disabledGlobalSettingsHandler) SetTokenType(_ []byte, _ uint32) error { |
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.
this is no longer a GlobalSettingHandler. Why do we have this function here?
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 token type is saved in ESDTGlobalMetadata
. GlobalSettingHandler
manages ESDTGlobalMetadata
…t-improvements-integration # Conflicts: # common/constants.go # go.mod # go.sum
|
||
func TestESDTMetaDataRecreate(t *testing.T) { | ||
tokenTypes := getDynamicTokenTypes() | ||
for _, tokenType := range tokenTypes { |
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.
👍
0753e2c
into
feat/esdt-improvements
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?