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

first map key of view output is not wrapped by quote #1026

Open
yipu3 opened this issue Sep 27, 2022 · 0 comments
Open

first map key of view output is not wrapped by quote #1026

yipu3 opened this issue Sep 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@yipu3
Copy link

yipu3 commented Sep 27, 2022

Describe the bug
I wrote a contract, which had a view function to return a HashMap. But the first map key of the output is not wrapped by single quote(the rest are wrapped), which is not consistent and will cause inconvenience.

To Reproduce
Steps to reproduce the behavior:

  1. Use testnet: export NODE_ENV="testnet"
  2. Call my contract in testnet: near view fund.abliukrny.testnet get_receiver_to_fund

Expected behavior
The first map key of the output should also be wrapped by single quote.

Screenshots
Screen Shot 2022-09-27 at 12 04 12

Desktop (please complete the following information):

  • OS: MacOS Monterey
  • Version 12.5.1

Additional context

@yipu3 yipu3 added the bug Something isn't working label Sep 27, 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

No branches or pull requests

1 participant