I’m trying to change the asset management of an already created ASA token.
It was initially created with the same admin account address for the manager, reserve, freeze and clawback address but now I would like to change them all to the zero address except for the clawback address which is going to be assigned to a stateless smart contract address.
I tried to do this using the js algosdk using the following code
let txn = algosdk.makeAssetConfigTxn( currentManagerAddress, params.fee, params.firstRound, params.lastRound, note, params.genesisHash, params.genesisID, assetID, "", "", "", escrowAddress, false); // strict empty address check
so setting the manager, reserve and freeze address to “” while the clawback address to the escrowAddress. However building this transaction I’m getting an error: Error: address seems to be malformed
Is it possible to change the asa manager address to the zero address after it has been created with an initial manager address?
Weirdly enough the python sdk seems to be able to change the address by using the following code:
txn = algo_txn.AssetConfigTxn( sender=current_manager_address, sp=params, index=asa_id, manager="", reserve="", freeze="", clawback=escrow_address, strict_empty_address_check=false)