Who knows... If I have such struct, how can I make definite address like receiver? I know that this can be done in constructor but how..

Nov 2, 2022, 2:00 AM
Or I can make it in struct?
Nov 2, 2022, 2:02 AM
if you mean a default value, you can't
Nov 2, 2022, 2:25 AM
No vault, my wallet
Or another wallet
Nov 2, 2022, 2:41 AM
?
structs doesn't store data, you need to use them in a variable or mapping
Nov 2, 2022, 2:43 AM
Receiver wallet = my wallet address
Nov 2, 2022, 2:43 AM
how do you want to store this data?
Nov 2, 2022, 2:43 AM
Constructor?
Nov 2, 2022, 2:43 AM
constructor is not a storage sector
Nov 2, 2022, 2:44 AM
But how can I make it
Nov 2, 2022, 2:44 AM
you can use them in memory too, but you must assign them in a variable anyway
sec i'll make an example
Nov 2, 2022, 2:47 AM
Thank you!
Nov 2, 2022, 3:16 AM

© 2024 Draquery.com All rights reserved.