governance::utils

Module 0xc0ded0c1::utils

module governance::utils

This module contains utilities for the governance module.

use 0x1::type_info;

Function governance_address

Extracts the address where the struct for GovernanceType is stored.

public fun governance_address<GovernanceType>(): address
Implementation
public fun governance_address<GovernanceType>(): address {
    let type_info = type_info::type_of<GovernanceType>();
    type_info::account_address(&type_info)
}

Last updated