Skip to content

Commit af3d5be

Browse files
fix: update package version
1 parent 28f930c commit af3d5be

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Diff for: examples/03_transfer_erc20_token.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def transfer_erc20(
1515
address: HexAddress,
1616
amount: float) -> HexStr:
1717
"""
18-
Transfer ETH to a desired address on zkSync network
18+
Transfer ERC20 token to a desired address on zkSync network
1919
2020
:param token_contract:
2121
Instance of ERC20 contract
@@ -56,21 +56,19 @@ def transfer_erc20(
5656

5757
if __name__ == "__main__":
5858
# Byte-format private key
59-
# PRIVATE_KEY = bytes.fromhex(os.environ.get("PRIVATE_KEY"))
60-
PRIVATE_KEY = bytes.fromhex("7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110")
59+
PRIVATE_KEY = bytes.fromhex(os.environ.get("PRIVATE_KEY"))
6160

6261
# Set a provider
63-
# PROVIDER = "https://testnet.era.zksync.dev"
64-
PROVIDER = "http://127.0.0.1:3050"
62+
PROVIDER = "https://testnet.era.zksync.dev"
6563

6664
# Connect to zkSync network
6765
zk_web3 = ZkSyncBuilder.build(PROVIDER)
6866

6967
# Get account object by providing from private key
7068
account1: LocalAccount = Account.from_key(PRIVATE_KEY)
71-
account2_address = zk_web3.to_checksum_address("0xa61464658AfeAf65CccaaFD3a512b69A83B77618")
69+
account2_address = zk_web3.to_checksum_address("0x81E9D85b65E9CC8618D85A1110e4b1DF63fA30d9")
7270

73-
token_address = zk_web3.to_checksum_address("0x2Ed5EfAB90d161DdCC65693bd77c3344200c9a00")
71+
token_address = zk_web3.to_checksum_address("0xCd9BDa1d0FC539043D4C80103bdF4f9cb108931B")
7472
token_contract = zk_web3.zksync.contract(token_address, abi=get_erc20_abi())
7573

7674
# Show balance before token transfer

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "zksync2"
7-
version = "0.6.0-beta.1"
7+
version = "0.6.0"
88
authors = [
99
{ name="Danijel Radakovic", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)