diff --git a/api/deneb/builderbid_ssz.go b/api/deneb/builderbid_ssz.go index 4b11c8a..1ea5961 100644 --- a/api/deneb/builderbid_ssz.go +++ b/api/deneb/builderbid_ssz.go @@ -1,12 +1,12 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: aa736df6fb4c29f4f8a429d0a08a8276f4908553b86fd7d4d68aacb369b9dff5 +// Hash: 7892d1b8a34d12e16ce7b5e0af8aef325f91e09b3a36208f80b706f3ffed4b78 // Version: 0.1.3 package deneb import ( "github.com/attestantio/go-eth2-client/spec/deneb" - "github.com/holiman/uint256" ssz "github.com/ferranbt/fastssz" + "github.com/holiman/uint256" ) // MarshalSSZ ssz marshals the BuilderBid object @@ -17,7 +17,7 @@ func (b *BuilderBid) MarshalSSZ() ([]byte, error) { // MarshalSSZTo ssz marshals the BuilderBid object to a target array func (b *BuilderBid) MarshalSSZTo(buf []byte) (dst []byte, err error) { dst = buf - offset := int(312) + offset := int(88) // Offset (0) 'Header' dst = ssz.WriteOffset(dst, offset) @@ -60,7 +60,7 @@ func (b *BuilderBid) MarshalSSZTo(buf []byte) (dst []byte, err error) { func (b *BuilderBid) UnmarshalSSZ(buf []byte) error { var err error size := uint64(len(buf)) - if size < 312 { + if size < 88 { return ssz.ErrSize } @@ -72,7 +72,7 @@ func (b *BuilderBid) UnmarshalSSZ(buf []byte) error { return ssz.ErrOffset } - if o0 < 312 { + if o0 < 88 { return ssz.ErrInvalidVariableOffset } @@ -84,7 +84,7 @@ func (b *BuilderBid) UnmarshalSSZ(buf []byte) error { // Field (2) 'Value' value := make([]byte, 32) for i := 0; i < 32; i++ { - value[i] = buf[35-i] + value[i] = buf[39-i] } if b.Value == nil { b.Value = new(uint256.Int) @@ -92,7 +92,7 @@ func (b *BuilderBid) UnmarshalSSZ(buf []byte) error { b.Value.SetBytes32(value) // Field (3) 'Pubkey' - copy(b.Pubkey[:], buf[264:312]) + copy(b.Pubkey[:], buf[40:88]) // Field (0) 'Header' { @@ -122,7 +122,7 @@ func (b *BuilderBid) UnmarshalSSZ(buf []byte) error { // SizeSSZ returns the ssz encoded size in bytes for the BuilderBid object func (b *BuilderBid) SizeSSZ() (size int) { - size = 312 + size = 88 // Field (0) 'Header' if b.Header == nil {