@@ -39,7 +39,7 @@ func (mvdt *CollationProtocol) SetValue(value any) (err error) {
39
39
}
40
40
}
41
41
42
- func (mvdt CollationProtocol ) IndexValue () (index uint , value any , err error ) {
42
+ func (mvdt * CollationProtocol ) IndexValue () (index uint , value any , err error ) {
43
43
switch mvdt .inner .(type ) {
44
44
case CollatorProtocolMessage :
45
45
return 0 , mvdt .inner , nil
@@ -48,7 +48,7 @@ func (mvdt CollationProtocol) IndexValue() (index uint, value any, err error) {
48
48
return 0 , nil , scale .ErrUnsupportedVaryingDataTypeValue
49
49
}
50
50
51
- func (mvdt CollationProtocol ) Value () (value any , err error ) {
51
+ func (mvdt * CollationProtocol ) Value () (value any , err error ) {
52
52
_ , value , err = mvdt .IndexValue ()
53
53
return
54
54
}
@@ -103,7 +103,7 @@ func (mvdt *CollatorProtocolMessage) SetValue(value any) (err error) {
103
103
}
104
104
}
105
105
106
- func (mvdt CollatorProtocolMessage ) IndexValue () (index uint , value any , err error ) {
106
+ func (mvdt * CollatorProtocolMessage ) IndexValue () (index uint , value any , err error ) {
107
107
switch mvdt .inner .(type ) {
108
108
case Declare :
109
109
return 0 , mvdt .inner , nil
@@ -121,7 +121,7 @@ func (mvdt CollatorProtocolMessage) IndexValue() (index uint, value any, err err
121
121
return 0 , nil , scale .ErrUnsupportedVaryingDataTypeValue
122
122
}
123
123
124
- func (mvdt CollatorProtocolMessage ) Value () (value any , err error ) {
124
+ func (mvdt * CollatorProtocolMessage ) Value () (value any , err error ) {
125
125
_ , value , err = mvdt .IndexValue ()
126
126
return
127
127
}
@@ -176,12 +176,12 @@ type CollationSeconded struct {
176
176
}
177
177
178
178
// Type returns CollationMsgType
179
- func (CollationProtocol ) Type () network.MessageType {
179
+ func (* CollationProtocol ) Type () network.MessageType {
180
180
return network .CollationMsgType
181
181
}
182
182
183
183
// Hash returns the hash of the CollationProtocolV1
184
- func (cp CollationProtocol ) Hash () (common.Hash , error ) {
184
+ func (cp * CollationProtocol ) Hash () (common.Hash , error ) {
185
185
// scale encode each extrinsic
186
186
encMsg , err := cp .Encode ()
187
187
if err != nil {
@@ -192,7 +192,7 @@ func (cp CollationProtocol) Hash() (common.Hash, error) {
192
192
}
193
193
194
194
// Encode a collator protocol message using scale encode
195
- func (cp CollationProtocol ) Encode () ([]byte , error ) {
195
+ func (cp * CollationProtocol ) Encode () ([]byte , error ) {
196
196
enc , err := scale .Marshal (cp )
197
197
if err != nil {
198
198
return nil , err
0 commit comments