[fixed] Error calling python evm_api.nft.sync_nft_contract method

When I run the following snippet, I get an error:

from moralis import evm_api

result = evm_api.nft.sync_nft_contract(
api_key=‘xx’,
params={“address”: ‘yy’, “chain”: “mumbai”},
)

File “./env/lib/python3.10/site-packages/moralis/evm_api/nft/sync_nft_contract.py”, line 12, in sync_nft_contract
api_response = api_instance.sync_nft_contract(
TypeError: SyncNftContract.sync_nft_contract() got an unexpected keyword argument ‘accept_content_types’

In what situation you want to use this method? What is the expected result of using this method? Ignoring current error

I also get the same error, we will have to check

1 Like

@cryptokid any update on this?

I don’t have an update yet.

Are you sure that you really have to call this method? It may not do what you expect it to do.

it is fixed in 0.1.14

1 Like

Thanks! I’m using it to begin the sync of a nft smart contract where nothing is minted yet.

1 Like