Skip to content

Commit

Permalink
logs: add the new deployed contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneWallet committed Dec 13, 2024
1 parent afa5fa1 commit 625ceca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mxops/execution/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ def _post_transaction_execution(self, on_chain_tx: TransactionOnNetwork | None):

if not isinstance(contract_address, Address):
raise errors.ParsingError(on_chain_tx, "contract deployment address")
LOGGER.info(
f"The address of the deployed contract is {contract_address.to_bech32()}"
)

if self.abi_path is not None:
serializer = AbiSerializer.from_abi(Path(self.abi_path))
Expand All @@ -293,7 +296,7 @@ def _post_transaction_execution(self, on_chain_tx: TransactionOnNetwork | None):

contract_data = InternalContractData(
contract_id=self.contract_id,
address=contract_address.bech32(),
address=contract_address.to_bech32(),
saved_values={},
wasm_hash=get_file_hash(Path(self.wasm_path)),
deploy_time=on_chain_tx.timestamp,
Expand Down

0 comments on commit 625ceca

Please sign in to comment.