Skip to content

Instantly share code, notes, and snippets.

@JesseAbram
Created May 27, 2020 14:34
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 JesseAbram/b508085d503126e3506dc08dc5a0e783 to your computer and use it in GitHub Desktop.
Save JesseAbram/b508085d503126e3506dc08dc5a0e783 to your computer and use it in GitHub Desktop.
library Storage {
struct Structing {
uint256 this;
mapping (uint256 => bool) that;
} // this does not require linking and is therefore embedding in contract demo?
function bePublic () public {
} // with this function library should not embed, yet it does not seem to work
}
contract demo {
Storage.Structing public structing;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment