pub fn wallet_contract(network_flag: bool) -> Address
Expand description
Generates the wallet contract address for the specified Cardano network.
This function constructs a Shelley address for the wallet contract based on the given network_flag
.
If the flag indicates Testnet, the Testnet network and pre-production stake hash are used.
Otherwise, the Mainnet network and stake hash are used.
§Arguments
network_flag
- A boolean flag specifying the network:true
for Testnet.false
for Mainnet.
§Returns
Address
- The wallet contract address for the specified network.