How to config asset default freeze teal

How to config asset default freeze in pyteal


Asset default freeze is a flag set at creation of a new asset.
The only time a smart contract may be able to set such flag is when the smart contract creates a new asset from its application account.
As such, it is set in the appropriate inner transaction (Smart contract details - Algorand Developer Portal) using the TxnField. config_asset_default_frozen field (PyTeal Package — PyTeal documentation).

Remember that assets on Algorand are not smart contracts contrary to Ethereum.
In most use cases, assets should be created outside of smart contracts and smart contracts only opt in and transfer assets.