Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 467 Bytes

enable_packed_slots.md

File metadata and controls

25 lines (19 loc) · 467 Bytes

enable_packed_slots

Signature

function enable_packed_slots(StdStorage storage self) internal returns (StdStorage storage);

Description

Enables the usage of packed storage slots

Examples

// Write arbitrary balances even on gas-optimized contracts like AUSD
stdstore
    .enable_packed_slots()
    .target(_tokenAddress)
    .sig("balanceOf(address)")
    .with_key(_to)
    .checked_write(
        _amount
    );