summaryrefslogtreecommitdiffstats
path: root/core/data.go
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-03-08 00:08:12 +0100
committerbt <bt@rctt.net>2026-03-08 00:08:12 +0100
commit0deb1e71a0e71432519b7dc0998ebbf06f2225b0 (patch)
tree3ef88f4ae986d976478b0232f6085c8c9bcd194f /core/data.go
parent3830a8ad69fd861558f4d8ee7ee67b05c244eb47 (diff)
downloadsolec-0deb1e71a0e71432519b7dc0998ebbf06f2225b0.tar.gz
solec-0deb1e71a0e71432519b7dc0998ebbf06f2225b0.zip
Core library
Diffstat (limited to 'core/data.go')
-rw-r--r--core/data.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/data.go b/core/data.go
index a617f17..0bd8200 100644
--- a/core/data.go
+++ b/core/data.go
@@ -7,7 +7,8 @@ type Marshaler interface {
type DataType uint8
const (
- TypeHandshake DataType = 0x01
+ TypeUnknown DataType = 0x00
+ TypeHandshake = 0x01
TypePing = 0x02
TypePong = 0x03
TypeTest = 0xFF
@@ -26,5 +27,5 @@ type Test struct {
}
func (h Test) Marshal() []any {
- return []any{[]byte(h.Message)}
+ return []any{append([]byte(h.Message), 0x0)}
}