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
    );