Git Source

Inherits: ERC173

This contract only exists for testing purposes. It is here to test diamond upgrades. It is named “Sample” instead of “Test” because naming it “Test” causes problems with Foundry testing.

State Variables

SAMPLE_STORAGE_POSITION

bytes32 constant SAMPLE_STORAGE_POSITION = keccak256("sample.storage");

Functions

s

Return the storage struct for reading and writing.

function s() internal pure returns (SampleStorage storage storageStruct);

Returns

NameTypeDescription
storageStructSampleStorageThe sample storage struct.

sampleUpgradeFunction

function sampleUpgradeFunction() external view onlyOwner returns (string memory);

Structs

SampleStorage

struct SampleStorage {
    uint256 v1;
}