Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 611 Bytes

Readme.md

File metadata and controls

24 lines (21 loc) · 611 Bytes

Transient Store Foundry Template

A foundry template with custom solc binaries (from transient-storage) that supports transient storage opcodes in inline assembly.

forge build --use bin/solc
forge test  --use bin/solc

Example contract

contract SimpleTStore {
    function tstore(uint key, uint value) external {
        assembly {
            tstore(key, value)
        }
    }
    function tload(uint key) external view returns (uint value) {
        assembly {
            value := tload(key)
        }
    }
}