Skip to content

Instantly share code, notes, and snippets.

@Juan-cc
Created January 26, 2019 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juan-cc/4885701202c1ffc4b74bfd79d7d8bd5f to your computer and use it in GitHub Desktop.
Save Juan-cc/4885701202c1ffc4b74bfd79d7d8bd5f to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.3+commit.10d17f24.js&optimize=false&gist=
pragma solidity ^0.5.2;
contract Bryan{
struct Data { mapping(uint => Fund) list; }
struct Fund {
address[] investorList;
}
Data data;
function setValue() external {
data.list[0].investorList.push(address(0xD6aE8250b8348C94847280928c79fb3b63cA453e));
}
function readValue() public returns (address) {
return data.list[0].investorList[0];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment