Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(python): private key #11

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/10_finalize_withdrawal.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
wallet = Wallet(zk_web3, eth_web3, account)

# Finalize withdraw of previous successful withdraw transaction
tx_receipt = wallet.finalize_withdrawal("0x8007ed5a42d763f07595e17448244218b30b722d6a21517cc700a7328b162c73")
tx_receipt = wallet.finalize_withdrawal("<TX_HASH>")

print(f"Finalize withdraw transaction: {tx_receipt['transactionHash'].hex()}")
2 changes: 1 addition & 1 deletion python/14_deploy_account_create2.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def deploy_account(
PROVIDER = "https://sepolia.era.zksync.dev"

# Get the private key from OS environment variables
PRIVATE_KEY = "0x03446ea5ff51c76f439a4dbb0ab5319fc8eba763ff314f6678512ba2e227bfce"
PRIVATE_KEY = bytes.fromhex(os.environ.get("PRIVATE_KEY"))

# Connect to zkSync network
zk_web3 = ZkSyncBuilder.build(PROVIDER)
Expand Down
Loading