//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract StorageSlotExample { uint256 uintStorage = 1337; function getStorageByPointer() external view returns (uint256) { uint256 _foundStorage; assembly { _foundStorage := sload(uintStorage_slot) } return _foundStorage; } function setStorageByPointer(uint256 _newNumber) external returns (bool) { assembly { sstore(uintStorage_slot, _newNumber) } return true; } }
0.4.18