-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add condition opcodes for agg sigs to condition_codes.clib (#15889)
* Add condition opcodes for agg sigs to condition_codes.clib * Add comment about hard fork * pylint
- Loading branch information
1 parent
f42394d
commit fe9b4aa
Showing
2 changed files
with
23 additions
and
0 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,13 @@ | ||
from __future__ import annotations | ||
|
||
import pkg_resources | ||
from clvm.casts import int_from_bytes | ||
|
||
from chia.types.condition_opcodes import ConditionOpcode | ||
|
||
|
||
def test_condition_codes_is_complete() -> None: | ||
with open(pkg_resources.resource_filename("chia.wallet.puzzles", "condition_codes.clib")) as f: | ||
contents: str = f.read() | ||
for name, value in ConditionOpcode.__members__.items(): | ||
assert f"(defconstant {name} {int_from_bytes(value)})" in contents |