Timeline for How to convert an bytes to address in Solidity?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2022 at 5:30 | comment | added | nnsk | @LukeHutchison you'd think, but I tried and the transaction got reverted with "Error: Transaction reverted and Hardhat couldn't infer the reason. Please report this to help us improve Hardhat" when I changed to the line you proposed | |
Dec 14, 2021 at 10:44 | comment | added | Luke Hutchison |
Can't you just do (address addr) = abi.decode(theBytes, (address)); ?
|
|
Dec 14, 2021 at 10:13 | comment | added | Luke Hutchison | Can you please explain why you add 20 to the start address? | |
Apr 16, 2020 at 0:57 | comment | added | LampShade | Best answer, for sure! | |
Jun 8, 2018 at 15:35 | review | First posts | |||
Jun 8, 2018 at 16:13 | |||||
Jun 5, 2018 at 21:31 | history | answered | Paul Steckler | CC BY-SA 4.0 |