Hi there! I want to send eth to array of addresses, can someone explain this error to me?
My arguments are: [0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2,0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db,0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB] & [2,3,4]
Nov 30, 2022, 5:23 PM
looks weird
maybe try ["0x...", "0x..."]
maybe try ["0x...", "0x..."]
Nov 30, 2022, 5:30 PM
One address looks empty
Nov 30, 2022, 5:34 PM
Add quotes to each address on the array
Nov 30, 2022, 5:39 PM
Thanks a lot it worked. But why quotes? Amount didn't needed quotes
Nov 30, 2022, 5:57 PM
Cause it's a uint
The Amounts
The Amounts
In Remix, after passing a single address, it converts it to a string before sending
Nov 30, 2022, 6:00 PM
Limitation on remix side. Web3 or ethers won't ask you for that
Nov 30, 2022, 6:03 PM
But you can't pass in non-strings let's say you're working in a Node.js environment
Nov 30, 2022, 6:03 PM
only solidity has a first-class address type , everywhere else is a string (or 20 byte array in go or c)
Nov 30, 2022, 6:04 PM