Skip to content

Commit

Permalink
fix intersection kind decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik committed Aug 16, 2024
1 parent 553aa29 commit 9c04fa9
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 9c04fa9

Please sign in to comment.