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

Error Message Request: Existing info in LookupMap #191

Closed
doriancrutcher opened this issue Aug 23, 2022 · 1 comment · Fixed by #209
Closed

Error Message Request: Existing info in LookupMap #191

doriancrutcher opened this issue Aug 23, 2022 · 1 comment · Fixed by #209
Assignees
Labels
bug Something isn't working

Comments

@doriancrutcher
Copy link

Let's say you have a lookup map in your smart contract and you set the key as name and the value as Dorian

Then you run the method again placing the same value Dorian under the key name

the current error message received is

"Smart contract panicked: unexpected token: 'undefined'\n"

Which is a bit misleading to what's actually going on.

Could the message be something like value already exists?

@ailisp
Copy link
Member

ailisp commented Sep 7, 2022

This looks like a bug, we're expecting set to work when value already exists

@ailisp ailisp added the bug Something isn't working label Sep 7, 2022
@volovyks volovyks linked a pull request Sep 8, 2022 that will close this issue
@volovyks volovyks self-assigned this Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants