Skip to content

Commit

Permalink
Merge pull request #64 from janezpodhostnik/janez/fix-intersection-kind
Browse files Browse the repository at this point in the history
Fix intersection kind decoding
  • Loading branch information
janezpodhostnik authored Aug 16, 2024
2 parents 553aa29 + eb0122d commit ac0bbb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flow_py_sdk/cadence/kinds.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def __str__(self):

@classmethod
def kind_str(cls) -> str:
return "Restriction"
return "Intersection"


class CapabilityKind(Kind):
Expand Down
6 changes: 3 additions & 3 deletions tests/cadence/encode_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,9 +1281,9 @@ def testReferenceKind(self):
)
self._encodeAndDecodeAll([kind])

def testRestrictedKind(self):
def testIntersectionKind(self):
kind = _EncodeTestParams(
"Restricted Kind",
"Intersection Kind",
cadence.IntersectionKind(
"0x3.GreatContract.GreatNFT",
[
Expand All @@ -1301,7 +1301,7 @@ def testRestrictedKind(self):
),
"""
{
"kind": "Restriction",
"kind": "Intersection",
"typeID": "0x3.GreatContract.GreatNFT",
"types": [
{
Expand Down

0 comments on commit ac0bbb9

Please sign in to comment.