-
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
Delete list from esdt #2941
Delete list from esdt #2941
Conversation
@@ -2499,3 +2501,28 @@ func (tpn *TestProcessorNode) createHeartbeatWithHardforkTrigger(heartbeatPk str | |||
err = tpn.Node.StartHeartbeat(hbConfig, "test", config.PreferencesConfig{}) | |||
log.LogIfError(err) | |||
} | |||
|
|||
// GetTokenIdentifier returns the token identifier from the metachain for the given ticker | |||
func GetTokenIdentifier(nodes []*TestProcessorNode, ticker []byte) []byte { |
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.
👍
@@ -164,8 +163,6 @@ func (e *esdt) Execute(args *vmcommon.ContractCallInput) vmcommon.ReturnCode { | |||
return e.controlChanges(args) | |||
case "transferOwnership": | |||
return e.transferOwnership(args) | |||
case "getAllESDTTokens": |
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.
So we can not get all tokens list straight from the esdt contract now, right? As an alternative, do we to iterate some leaves over a data trie in case we need that list?
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.
Exactly. Or index it in elastic search
deleted all token list from esdt metachain system sc