Skip to content

algopy_testing.state.global_state

GlobalState

Bases: Generic[_T]

set_key(key: Bytes | String | bytes | str) → None

Section titled “set_key(key: Bytes | String | bytes | str) → None”

Set the key and apply any pending value.

Pending values are used for implicit keys in Contract subclasses. They’re stored until the ‘Contract’’s initialization sets the key.

Provides access to the raw storage key.