Skip to content

Missing File Index Calculation in Python SDK file_delete Function #55

@d4v1d03

Description

@d4v1d03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions