Skip to content

Constitution


Calls


amend_constitution

Sets the current constitution hash. Requires root origin. # <weight> - Complexity: O(C) where C is the length of the constitution text. - Db reads: 0 - Db writes: 1 (constant value) # </weight>

Attributes

Name Type
constitution_text Vec<u8>

Python

call = substrate.compose_call(
    'Constitution', 'amend_constitution', {'constitution_text': 'Bytes'}
)

Events


ConstutionAmended

Emits on constitution amendment. Parameters: - constitution text hash - constitution text

Attributes

Name Type Composition
None Hash scale_info::11
None Vec<u8> Bytes

Storage functions


Constitution

Python

result = substrate.query(
    'Constitution', 'Constitution', []
)

Return value

{'text_hash': 'scale_info::11'}