Skip to content

Commit

Permalink
Use deneb builder API in TestRelayBlockSubmission. (fails) (#189)
Browse files Browse the repository at this point in the history
* Use deneb builder API in TestRelayBlockSubmission. (fails)

* Fix missing BlobsBundle.
  • Loading branch information
lthibault authored Feb 8, 2024
1 parent 77b367d commit 2eba5ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/vm/contracts_suave_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (b *suaveRuntime) buildEthBlock(blockArgs types.BuildBlockArgs, dataID type
Message: &blockBidMsg,
ExecutionPayload: payload,
Signature: signature,
BlobsBundle: &builderDeneb.BlobsBundle{},
}

bidBytes, err := bidRequest.MarshalJSON()
Expand Down
4 changes: 2 additions & 2 deletions suave/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/alicebob/miniredis/v2"
builderCapella "github.com/attestantio/go-builder-client/api/capella"
builderDeneb "github.com/attestantio/go-builder-client/api/deneb"
bellatrixSpec "github.com/attestantio/go-eth2-client/spec/bellatrix"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/ethereum/go-ethereum/accounts"
Expand Down Expand Up @@ -979,7 +979,7 @@ func TestRelayBlockSubmissionContract(t *testing.T) {

var ethBlockBidSenderAddr common.Address

var blockPayloadSentToRelay *builderCapella.SubmitBlockRequest = &builderCapella.SubmitBlockRequest{}
var blockPayloadSentToRelay *builderDeneb.SubmitBlockRequest = &builderDeneb.SubmitBlockRequest{}
serveHttp := func(t *testing.T, w http.ResponseWriter, r *http.Request) {
bodyBytes, err := io.ReadAll(r.Body)
require.NoError(t, err)
Expand Down

0 comments on commit 2eba5ba

Please sign in to comment.