Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes

Array of Structs problem and how to test in Remix - Copying of type struct ArrayTest.swapDataStruct memory[] memory to storage not yet supported

Understanding the Error The error you encountered: "Copying of type struct ArrayTest.swapDataStruct memory[] memory to storage not yet supported" arises due to Solidity's type system and ...
Kirill Balakhonoff's user avatar
1 vote
Accepted

Array of Structs problem and how to test in Remix - Copying of type struct ArrayTest.swapDataStruct memory[] memory to storage not yet supported

Solidity does not support direct assignment of an array of structs from memory to storage. However, to work around this limitation, you can iterate through the elements of the array and assign them ...
SYED ASAD KAZMI's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible