Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions multiversx_sdk_cli/tests/test_cli_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading