How do you delete an array at a certain index in solidity? I'm trying to access the index via key and not the index number.
function deleteAtIndex(address _address) {
delete sellers[_address];
}
The error I'm receiving is
TypeError: Type address is not implicitly convertible to expected type uint256
. I also know that deleting this will leave a 0 at the index. Is there any way around this without shifting the entire array since I know it's expensive?