The file_delete function in akavesdk-py/sdk/sdk_ipc.py currently has a hardcoded placeholder value for the file_index parameter instead of properly calculating it from the smart contract.
The Python SDK is missing the proper implementation to retrieve the file index using the get_file_index_by_id contract method, which is required for the deleteFile smart contract function to work correctly.
Current Impact
-
File deletion fails with contract errors because the hardcoded index 2 is likely incorrect for most files
-
The function doesn't follow the same pattern as the working Go SDK implementation
-
Contract calls may revert due to invalid index parameter