Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jul 31, 2024
1 parent e86a02d commit def598f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion cmd/sszgen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func generate(ctx *genContext, typ *sszContainer) ([]byte, error) {
}
codes = append(codes, code)
}
//fmt.Println(string(bytes.Join(codes, []byte("\n"))))
return bytes.Join(codes, []byte("\n")), nil
}

Expand Down
6 changes: 0 additions & 6 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,9 @@ func DecodeUint64[T ~uint64](dec *Decoder, n *T) {

// DecodeUint256 parses a uint256.
func DecodeUint256(dec *Decoder, n **uint256.Int) {
fmt.Println("REEEE")
if dec.err != nil {
return
}
fmt.Println("REEEE2")
if dec.inReader != nil {
_, dec.err = io.ReadFull(dec.inReader, dec.buf[:32])
if dec.err != nil {
Expand All @@ -203,20 +201,16 @@ func DecodeUint256(dec *Decoder, n **uint256.Int) {
*n = new(uint256.Int)
}
(*n).UnmarshalSSZ(dec.buf[:32])
fmt.Println("BET123", n)
} else {
if len(dec.inBuffer) < 32 {
dec.err = io.ErrUnexpectedEOF
return
}
if *n == nil {
*n = new(uint256.Int)
fmt.Println("BET1234", *n)
}
(*n).UnmarshalSSZ(dec.inBuffer[:32])
dec.inBuffer = dec.inBuffer[32:]

fmt.Println("ON THE OBJ", *n)
}
}

Expand Down
1 change: 0 additions & 1 deletion example_dynamic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func ExampleEncodeDynamicObject() {
if err := ssz.EncodeToBytes(blob, obj); err != nil {
panic(err)
}

fmt.Printf("ssz: %#x\n", blob)
// Output:
// ssz: 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000020000
Expand Down

0 comments on commit def598f

Please sign in to comment.