You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Replace <TYPE> by your type. Exemples of common type are address, uint, string, bool, bytes or struc. Please refer to the official documentation : https://solidity-fr.readthedocs.io/fr/latest/types.html
// This mapping is performed from an address, but can be performed from other types. For example, if you want to map from an uint, you must replace all "address" by "uint".
pragma solidity ^0.8.19;
mapping(address => <TYPE>[]) public mapToArrayOfAddress;
function getArrayFromMapping(address _address) external view returns(<TYPE>[] memory){
<TYPE>[] memory temp = new <TYPE>[](mapToArrayOfAddress[_address].length);
for (uint32 i = 0; i < mapToArrayOfAddress[_address].length; i++)