Skip to content

Latest commit

 

History

History
217 lines (178 loc) · 5.16 KB

ProxiableContract2.md

File metadata and controls

217 lines (178 loc) · 5.16 KB

ProxiableContract2.sol

View Source: contracts/TestContracts/UpgradableProxyTester.sol

↗ Extends: Storage

ProxiableContract2

Contract Members

Constants & Variables

uint256 internal someVar;
uint256 internal anotherVar;

Functions


getSomeVar

function getSomeVar() public view
returns(uint256)
Source Code
function getSomeVar() public view returns (uint) {
        return someVar;
    }

setSomeVar

function setSomeVar(uint256 value) public nonpayable

Arguments

Name Type Description
value uint256
Source Code
function setSomeVar(uint value) public {
        someVar = value;
    }

getAnotherVar

function getAnotherVar() public view
returns(uint256)
Source Code
function getAnotherVar() public view returns (uint) {
        return anotherVar;
    }

setAnotherVar

function setAnotherVar(uint256 value) public nonpayable

Arguments

Name Type Description
value uint256
Source Code
function setAnotherVar(uint value) public {
        anotherVar = value;
    }

mulVars

function mulVars() public view
returns(uint256)
Source Code
function mulVars() public view returns (uint) {
        return someVar * anotherVar;
    }

Contracts