Skip to content

Commit

Permalink
remove eoa + add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed May 30, 2024
1 parent d005d94 commit b57a8f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boa_zksync/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class ZksyncEnv(NetworkEnv):
def __init__(self, rpc: str | RPC, *args, **kwargs):
super().__init__(rpc, *args, **kwargs)
self.evm = None # not used in zkSync
self.eoa = self.generate_address("eoa")
self.last_receipt: dict | None = None
self._vm = None

Expand Down Expand Up @@ -212,8 +211,11 @@ def deploy_code(
raw_tx = tx.rlp_encode(signature, estimated_gas)

tx_hash = self._rpc.fetch("eth_sendRawTransaction", ["0x" + raw_tx.hex()])
print(f"tx broadcasted: {tx_hash}")
receipt = self._rpc.wait_for_tx_receipt(tx_hash, self.tx_settings.poll_timeout)
self.last_receipt = receipt

print(f"{tx_hash} mined in block {receipt['blockHash']}!")
return Address(receipt["contractAddress"]), bytecode

def get_code(self, address: Address) -> bytes:
Expand Down

0 comments on commit b57a8f2

Please sign in to comment.