-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix dns register using relayed transaction
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pathlib import Path | ||
|
||
from multiversx_sdk_cli.cli import main | ||
|
||
testdata_path = Path(__file__).parent / "testdata" | ||
|
||
|
||
def test_prepare_relayed_dns_register_transaction(): | ||
alice = testdata_path / "alice.pem" | ||
|
||
return_code = main([ | ||
"dns", "register", | ||
"--pem", str(alice), | ||
"--name", "alice.elrond", | ||
"--nonce", "0", | ||
"--gas-limit", "15000000", | ||
"--chain", "T", | ||
"--relay" | ||
]) | ||
|
||
assert False if return_code else True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters