zksync-sdk / zksync-python

Python 3.8 SDK for zkSync
MIT License
116 stars 64 forks source link

Eth signature is incorrect #47

Open Glory-dog opened 2 years ago

Glory-dog commented 2 years ago

When I use wallet.mint_nft, the return value tells me 'zksync_sdk.transport.ResponseError: Response error with code 202 Eth signature is incorrect’

I have used the web3.py of 5.2x and the web3.py of 6.x both prompt the same error. What am I doing wrong? code show as below:

async def mint():
    tx = await wallet.mint_nft(content_hash,address, "ETH")
    return tx

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
task = loop.create_task(mint())
loop.run_until_complete(task)
mint_tx = task.result()