Skip to content

Instantly share code, notes, and snippets.

View SahilSK202's full-sized avatar
🎯
Focusing

Sahil Kavitake SahilSK202

🎯
Focusing
View GitHub Profile
@samanshahmohamadi
samanshahmohamadi / MappingTest.sol
Created January 15, 2019 09:40
How to return whole mapping in solidity
pragma solidity ^0.4.25;
contract MappingTest {
mapping(uint=>address) public addresses;
uint addressRegistryCount;
function set(address userAddress) public{
addresses[addressRegistryCount] = userAddress;
addressRegistryCount++;
}