Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 18, 2023
1 parent 3052790 commit 2b876cb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe("api/validator - produceBlockV2", function () {
};

const fullBlock = ssz.bellatrix.BeaconBlock.defaultValue();
const blockValue = ssz.Wei.defaultValue();
const executionPayloadValue = ssz.Wei.defaultValue();

const currentSlot = 100000;
server.chainStub.clock = {currentSlot} as IClock;
Expand All @@ -114,7 +114,7 @@ describe("api/validator - produceBlockV2", function () {
const expectedFeeRecipient = "0xcccccccccccccccccccccccccccccccccccccccc";

const api = getValidatorApi(modules);
server.chainStub.produceBlock.resolves({block: fullBlock, blockValue});
server.chainStub.produceBlock.resolves({block: fullBlock, executionPayloadValue});

// check if expectedFeeRecipient is passed to produceBlock
await api.produceBlockV2(slot, randaoReveal, graffiti, expectedFeeRecipient);
Expand Down Expand Up @@ -142,7 +142,7 @@ describe("api/validator - produceBlockV2", function () {

it("correctly use passed feeRecipient in notifyForkchoiceUpdate", async () => {
const fullBlock = ssz.bellatrix.BeaconBlock.defaultValue();
const blockValue = ssz.Wei.defaultValue();
const executionPayloadValue = ssz.Wei.defaultValue();
const slot = 100000;
const randaoReveal = fullBlock.body.randaoReveal;
const graffiti = "a".repeat(32);
Expand All @@ -161,7 +161,7 @@ describe("api/validator - produceBlockV2", function () {
executionEngineStub.notifyForkchoiceUpdate.resolves("0x");
executionEngineStub.getPayload.resolves({
executionPayload: ssz.bellatrix.ExecutionPayload.defaultValue(),
blockValue,
executionPayloadValue,
});

// use fee recipient passed in produceBlockBody call for payload gen in engine notifyForkchoiceUpdate
Expand Down

0 comments on commit 2b876cb

Please sign in to comment.