Skip to content

Commit

Permalink
core/vm: change formatter in error msg for invalid magic
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Jan 17, 2023
1 parent 55bff2b commit a1f2a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/eof.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (c *Container) MarshalBinary() []byte {
// UnmarshalBinary decodes an EOF container.
func (c *Container) UnmarshalBinary(b []byte) error {
if !hasEOFMagic(b) {
return fmt.Errorf("%w: want %s", ErrInvalidMagic, eofMagic)
return fmt.Errorf("%w: want %x", ErrInvalidMagic, eofMagic)
}
if len(b) < 14 {
return io.ErrUnexpectedEOF
Expand Down

0 comments on commit a1f2a17

Please sign in to comment.