From 22bb3b44a21cdb35f3525bd07f9222056cab30c0 Mon Sep 17 00:00:00 2001 From: avalonche Date: Sat, 20 Jan 2024 10:34:20 +1100 Subject: [PATCH] Fix builder bid ssz --- api/deneb/builderbid_ssz.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/deneb/builderbid_ssz.go b/api/deneb/builderbid_ssz.go index fccb258..4b11c8a 100644 --- a/api/deneb/builderbid_ssz.go +++ b/api/deneb/builderbid_ssz.go @@ -31,8 +31,9 @@ func (b *BuilderBid) MarshalSSZTo(buf []byte) (dst []byte, err error) { offset += len(b.BlobKZGCommitments) * 48 // Field (2) 'Value' - for ii := 0; ii < 32; ii++ { - dst = ssz.MarshalUint64(dst, b.Value[ii]) + value := b.Value.Bytes32() + for i := 0; i < 32; i++ { + dst = append(dst, value[31-i]) } // Field (3) 'Pubkey'