argotorg / argotorg/solidity

Mapping:The getter automatically generated by the mapping has a bug.

Open
#15,979 1 comment 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

## Description
The getter automatically generated by the mapping has a bug.

## Environment
Remix 0.8.29

## Steps to Reproduce
When I use " mapping(address => uint256[]) public holderCertificates;",the getters automatically generated by the mapping do not support getting arrays by address.

Image

I have to manually construct the getter to retrieve the data.

Image

Contributor guide

Open the contributing guide

Research direction

Start in Remix 0.8.29 with the reported `mapping(address => uint256[]) public holderCertificates` declaration and reproduce the generated getter behavior shown in the screenshots. Compare it with the manually constructed getter and define the fix as allowing array data to be retrieved by address through the automatically generated getter.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.