near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 91 forks source link

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

Open yipu3 opened 1 year ago

yipu3 commented 1 year ago

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):

Additional context