In Solidity, how can I convert the sender address to a string?
The comments in
How to convert an address to bytes in Solidity? did not provide a working solution
addressescontract-designcontract-developmentsoliditystring
In Solidity, how can I convert the sender address to a string?
The comments in
How to convert an address to bytes in Solidity? did not provide a working solution
Best Answer
Use
abi.encodePacked(x)
where
x
is the address. (Thanks @k06a)