From af3d5be4ca722080dd74c62143e6d3bb06198e65 Mon Sep 17 00:00:00 2001 From: danijelTxFusion Date: Fri, 7 Jul 2023 13:34:23 +0200 Subject: [PATCH] fix: update package version --- examples/03_transfer_erc20_token.py | 12 +++++------- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/03_transfer_erc20_token.py b/examples/03_transfer_erc20_token.py index eb8705f..9ef953a 100644 --- a/examples/03_transfer_erc20_token.py +++ b/examples/03_transfer_erc20_token.py @@ -15,7 +15,7 @@ def transfer_erc20( address: HexAddress, amount: float) -> HexStr: """ - Transfer ETH to a desired address on zkSync network + Transfer ERC20 token to a desired address on zkSync network :param token_contract: Instance of ERC20 contract @@ -56,21 +56,19 @@ def transfer_erc20( if __name__ == "__main__": # Byte-format private key - # PRIVATE_KEY = bytes.fromhex(os.environ.get("PRIVATE_KEY")) - PRIVATE_KEY = bytes.fromhex("7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110") + PRIVATE_KEY = bytes.fromhex(os.environ.get("PRIVATE_KEY")) # Set a provider - # PROVIDER = "https://testnet.era.zksync.dev" - PROVIDER = "http://127.0.0.1:3050" + PROVIDER = "https://testnet.era.zksync.dev" # Connect to zkSync network zk_web3 = ZkSyncBuilder.build(PROVIDER) # Get account object by providing from private key account1: LocalAccount = Account.from_key(PRIVATE_KEY) - account2_address = zk_web3.to_checksum_address("0xa61464658AfeAf65CccaaFD3a512b69A83B77618") + account2_address = zk_web3.to_checksum_address("0x81E9D85b65E9CC8618D85A1110e4b1DF63fA30d9") - token_address = zk_web3.to_checksum_address("0x2Ed5EfAB90d161DdCC65693bd77c3344200c9a00") + token_address = zk_web3.to_checksum_address("0xCd9BDa1d0FC539043D4C80103bdF4f9cb108931B") token_contract = zk_web3.zksync.contract(token_address, abi=get_erc20_abi()) # Show balance before token transfer diff --git a/pyproject.toml b/pyproject.toml index 131a092..a62e9be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "zksync2" -version = "0.6.0-beta.1" +version = "0.6.0" authors = [ { name="Danijel Radakovic", email="danijel@txfusion.io" }, ]