I am creating an ASA dynamically in a smart contract using an inner transaction similar to what was posted previously. It seems to succeed, but something is wrong with the resulting ASA. Viewing the asset in GoalSeeker, a 502 error is thrown when retrieving the transactions. AlgoExplorer simply gives a 404 for the asset. What am I doing wrong?
https://testnet.algoexplorer.io/asset/62426384
asset_id = ScratchVar(TealType.uint64)
@Subroutine(TealType.none)
def mintNft() -> Expr:
return Seq(
InnerTxnBuilder.Begin(),
InnerTxnBuilder.SetFields(
{
TxnField.type_enum: TxnType.AssetConfig,
TxnField.config_asset_total: Int(1),
TxnField.config_asset_decimals: Int(0),
TxnField.config_asset_name: Bytes("Nifty"),
TxnField.config_asset_unit_name: Bytes("NFTY"),
}
),
InnerTxnBuilder.Submit(),
asset_id.store(InnerTxn.created_asset_id()),
)
