From 9d860982d3263d7b887237b23c17e6e56fb768de Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Tue, 21 Oct 2025 10:51:06 +0300 Subject: [PATCH] update to latest sdk --- .../tests/test_cli_contracts.py | 21 +++++++++++++++++++ pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/multiversx_sdk_cli/tests/test_cli_contracts.py b/multiversx_sdk_cli/tests/test_cli_contracts.py index fa9d5bf6..778e764e 100644 --- a/multiversx_sdk_cli/tests/test_cli_contracts.py +++ b/multiversx_sdk_cli/tests/test_cli_contracts.py @@ -608,6 +608,27 @@ def test_contract_query(capsys: Any): assert response == [14] +def test_contract_deploy_using_gas_estimator(capsys: Any): + return_code = main( + [ + "contract", + "deploy", + "--bytecode", + f"{parent}/testdata/adder.wasm", + "--pem", + f"{parent}/testdata/testUser.pem", + "--proxy", + "https://devnet-api.multiversx.com", + "--arguments", + "0", + ] + ) + assert not return_code + output = _read_stdout(capsys) + transaction = json.loads(output)["emittedTransaction"] + assert transaction["gasLimit"] > 50_000 + + def _read_stdout(capsys: Any) -> str: stdout: str = capsys.readouterr().out.strip() return stdout diff --git a/pyproject.toml b/pyproject.toml index f4e7f83d..e90ae27f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "ledgercomm[hid]", "rich==13.3.4", "argcomplete==3.2.2", - "multiversx-sdk[ledger]==2.3.1" + "multiversx-sdk[ledger]==2.3.2" ] [project.scripts] diff --git a/requirements.txt b/requirements.txt index fdc91d92..b965943a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ ledgercomm[hid] rich==13.3.4 argcomplete==3.2.2 -multiversx-sdk[ledger]==2.3.1 +multiversx-sdk[ledger]==2.3.2