Created
January 26, 2019 23:56
-
-
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=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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