Use of encode and encodePacked #3301
Replies: 1 comment 2 replies
-
Hello @GaurangBharadava, You can use About the issues that can occur when using About casting to byte or to String, that is all on you and what you want to achieve when you are writing your contract intuitively you can know what data type you need to cast to. About proper typecasting of all data types the more you use solidity in your personal project, the more you get comfortable with typecasting any data type appropriately. |
Beta Was this translation helpful? Give feedback.
-
I have a simple query like, When to use abi.encode and abi.encodePacked ?
And which issue can be occur while using both of them.
Also i have another query when to cast our output to bytes and when to cast to string?
Also if you can help me to understand proper typecasting of all the data types then it will be very great for me.
Beta Was this translation helpful? Give feedback.
All reactions