Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
axaysagathiya committed Dec 20, 2024
1 parent 9cd6aa6 commit d1916f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dot/parachain/types/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/ChainSafe/gossamer/pkg/scale"
)

var BACKING_STATEMENT_MAGIC = [4]byte{'B', 'K', 'N', 'G'}
var backingStatementMagic = [4]byte{'B', 'K', 'N', 'G'}

// Statement is a result of candidate validation. It could be either `Valid` or `Seconded`.
type StatementVDTValues interface {
Expand Down Expand Up @@ -270,7 +270,7 @@ func (c CompactStatement[CompactStatementValues]) MarshalSCALE() ([]byte, error)
return nil, fmt.Errorf("setting value: %w", err)
}

buffer := bytes.NewBuffer(BACKING_STATEMENT_MAGIC[:])
buffer := bytes.NewBuffer(backingStatementMagic[:])
encoder := scale.NewEncoder(buffer)

err = encoder.Encode(inner)
Expand All @@ -290,7 +290,7 @@ func (c *CompactStatement[CompactStatementValues]) UnmarshalSCALE(reader io.Read
return err
}

if !bytes.Equal(magicBytes[:], BACKING_STATEMENT_MAGIC[:]) {
if !bytes.Equal(magicBytes[:], backingStatementMagic[:]) {
return fmt.Errorf("invalid magic bytes")
}

Expand Down

0 comments on commit d1916f4

Please sign in to comment.