Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant