zksync-sdk / zksync-python

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

NameError: name 'ChangePubKeyEcdsa' is not defined #9

Closed imcda closed 3 years ago

imcda commented 3 years ago

when I try to transfer a coin, I need to unlock the wallet first.

StanislavBreadless commented 3 years ago

Hey @imcda ! Please, show us the code snippets that produce the error

3q-coder commented 3 years ago

Hey @StanislavBreadless! Same issue when trying to follow Python SDK tutorial:

if not await wallet.is_signing_key_set():
    await wallet.set_signing_key("ETH", eth_auth_data=ChangePubKeyEcdsa())

Where can I take ChangePubKeyEcdsa function?

StanislavBreadless commented 3 years ago

Hey @StanislavBreadless! Same issue when trying to follow Python SDK tutorial:

if not await wallet.is_signing_key_set():
    await wallet.set_signing_key("ETH", eth_auth_data=ChangePubKeyEcdsa())

Where can I take ChangePubKeyEcdsa function?

from zksync_sdk.types import (ChangePubKeyCREATE2, ChangePubKeyEcdsa) should work

3q-coder commented 3 years ago

Thanks, it works