-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools/vanity]: max-offset argument is not coerced to int
problem: when specified, max-offset argument is treated as string solution: coerce max-offset to int add a few test examples to detect future regressions
- Loading branch information
1 parent
6a49a3f
commit 174ef87
Showing
2 changed files
with
10 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
python -m vanity --patterns AAA,BBB | ||
python -m vanity --blockchain symbol --network testnet --patterns AXE,AXA --max-offset=100 --format pretty | ||
python -m vanity --blockchain nem --network mainnet --patterns AXE,AXA --format csv --suppress-console --out "${TMPDIR}/foo.txt" | ||
cat "${TMPDIR}/foo.txt" | ||
rm "${TMPDIR}/foo.txt" |
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