I'm trying to get the to and from address from the logs in a transaction. In my example, the log entry is for a Transfer(address,address,uint256).
The resulting topics[1] and [2] return the addresses, but in a long format: 0x0000000000000000000000002dbbbebef9915110dac11a89ca986ba6051d0972
How do I convert this to a regular address? Eg: 0x22dbbbebef9915110dac11a89ca986ba6051d09720x2dbbbebef9915110dac11a89ca986ba6051d0972