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

Delete list from esdt #2941

Merged
merged 5 commits into from
Mar 31, 2021
Merged

Conversation

sasurobert
Copy link
Contributor

deleted all token list from esdt metachain system sc

@SebastianMarian SebastianMarian self-requested a review March 30, 2021 19:36
@iulianpascalau iulianpascalau self-requested a review March 31, 2021 07:53
@@ -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 {
Copy link
Contributor

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":
Copy link
Contributor

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?

Copy link
Contributor Author

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

@sasurobert sasurobert merged commit 5c4caa4 into feat/eip-esdt-local-mint Mar 31, 2021
@sasurobert sasurobert deleted the delete-list-from-esdt branch March 31, 2021 08:54
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

3 participants