Skip to content

Commit c2ec9c2

Browse files
authored
Add new prim (#75)
1 parent cba7a70 commit c2ec9c2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Netezos/Encoding/Micheline/Abstract/PrimType.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ public enum PrimType : byte
164164
BYTES,
165165
NAT,
166166
Ticket,
167-
IS_IMPLICIT_ACCOUNT
167+
IS_IMPLICIT_ACCOUNT,
168+
GET_ADDRESS_INDEX,
169+
INDEX_ADDRESS
168170
}
169171
}

Netezos/Encoding/Micheline/Serialization/PrimTypeConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ public class PrimTypeConverter : JsonConverter<PrimType>
166166
"NAT" => PrimType.NAT,
167167
"Ticket" => PrimType.Ticket,
168168
"IS_IMPLICIT_ACCOUNT" => PrimType.IS_IMPLICIT_ACCOUNT,
169+
"GET_ADDRESS_INDEX" => PrimType.GET_ADDRESS_INDEX,
170+
"INDEX_ADDRESS" => PrimType.INDEX_ADDRESS,
169171
var value => throw new FormatException($"Invalid prim: {value}")
170172
};
171173

0 commit comments

Comments
 (0)