‘whitelist of addresses’ which is a mapping address -> uint. When i deploy my smart contract, with truffle, i want to populate the mapping. What is the most gas efficient way to do this? There are about 30k addresses that i want to add. Passing the entire array doesn’t seem to work in truffle tests. Passing batches of 1000 works in test but not in deploy Rinkeby. Examples welcome.
is this on ethereum? Storing 30k values into a mapping is going to be quite expensive...roughly $47000 at 30 gwei! Instead, you should use a merkle tree or a set of signed coupons to accomplish the whitelist (both will cost you only a few dollars)
I think HEX did a really job on this particular issue!
If you are looking for a job or you have a job offer use @ethereum_jobs_market.
Обсуждают сегодня