Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created August 17, 2021 22:09
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 mudgen/409e3bd89f062dd0ffd197ce95f2758e to your computer and use it in GitHub Desktop.
Save mudgen/409e3bd89f062dd0ffd197ce95f2758e to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./AppStorage.sol"
contract StakingFacet {
AppStorage internal s;
function myFacetFunction(uint256 _nextVar) external {
s.total = s.firstVar + _nextVar;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment