Hey guys,
Can you let me know what is the best solution to initialize the structs in test of contracts? With js

Nov 8, 2023, 9:14 AM
structs cannot be initialized, it's just a data structure like interfaces.
Nov 8, 2023, 2:15 PM
so how to write unit test for structs ?
Nov 8, 2023, 2:16 PM
you write unit tests for the variables or mapping that are using that struct
Nov 8, 2023, 2:17 PM

© 2024 Draquery.com All rights reserved.