hi, how can you handle
address[] senders = [
0x123...,
0x456...,
0x789...,
]
1st error: data speficifaction
must be a storage / memory / calldata
2nd error: if i set memory/calldata/storage,
Type address[5] memory is not implicitly convertible to expected type address[] memory.
what is your way to setup an array of addresses?
Dec 8, 2023, 2:23 PM
Did you try searching online for those error messages?
They’re pretty straight forward
They’re pretty straight forward
Dec 8, 2023, 3:06 PM
found answers on internet misguided to similar questions but in specific solutions by routing to different methods.
I found by setting map uint=>address and fill it one by one in an urgencny
I found by setting map uint=>address and fill it one by one in an urgencny
did you have an answer?
Dec 8, 2023, 4:28 PM
For first error you have to specify the location either memory storage or call data
Second you have to declare the size of the array
Second you have to declare the size of the array
Dec 8, 2023, 4:30 PM
Please check dm
Dec 8, 2023, 7:40 PM