I know i am boring 😅

fbslo, [12.10.21 11:33]
It's not possible to iterate through a mapping in solidity.

fbslo, [12.10.21 11:34]
And balances are stored in address => balance mapping

fbslo, [12.10.21 11:36]
That's why balances has to be calculated off-chain using Transfer event logs. I personally worked with getting holders many times before, and there is no way to get holders of a standard erc20 directly from another contract.

Oct 12, 2021, 1:27 PM
Why do you keep sending this again and again
Oct 12, 2021, 1:28 PM
I am trying to get around my problem
Oct 12, 2021, 1:28 PM
ok and?
Oct 12, 2021, 1:28 PM
Which is?
Oct 12, 2021, 1:28 PM
if you need to iterate make an array or a mapping int -> address
Oct 12, 2021, 1:29 PM
Mapping of internal address can be done without paying 6k of fees?
Oct 12, 2021, 1:31 PM

© 2024 Draquery.com All rights reserved.