mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-11 17:43:12 +00:00
revert: use slice because the type of enum values are bytes
This commit is contained in:
parent
5b41c3d3cc
commit
693cf63b73
@ -116,4 +116,4 @@ class Nomssip:
|
||||
"""
|
||||
if len(data) < 1:
|
||||
raise ValueError("Invalid message format")
|
||||
return (Nomssip.PacketType(data[0]), data[1:])
|
||||
return (Nomssip.PacketType(data[:1]), data[1:])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user