Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.
This repository was archived by the owner on May 3, 2024. It is now read-only.

An error occurs when creating_batch using the Python SDK. #142

Description

@warengonzaga

The error occurs in the thirdweb\core\classes\erc_721.py file.
TypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given

I checked that an error occurred in the code below.

batch = self._storage.upload_metadata_batch(
        [metadata.to_json() for metadata in metadatas],
            start_file_number,
            self._drop._contract_abi.contract_address,
            self._drop.get_signer_address(),
        )

Storage.upload_metadata_batch requires only two parameters, but four are entered in the code. (excluding self parameters)

Unnecessary parameters have been deleted from storage.upload_metadata_batch according to the error message.

And I checked that it works normally.
The development team requests a revision of the library in this SDK.

image
image

Reported from Discord by user.

Tagging @adam-maj to review the bug. Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions