Hello,
I'm trying to concatenate an address and a uint inorder to generate an id for a function but couldn't.

Please is there a function in solidity which I can use to directly convert address or a uint to string..? So that I can concatenate them

Dec 30, 2022, 11:34 PM
If its an id for a function, why not use a mapping and keep them separate, and use uint256 instead of a string ? like mapping(uint256 => address) public id;
Dec 31, 2022, 1:32 AM
Had to use it like that, thank you
Dec 31, 2022, 1:55 AM

© 2024 Draquery.com All rights reserved.