diff --git a/packages/beacon-node/test/unit/api/impl/validator/produceBlockV2.test.ts b/packages/beacon-node/test/unit/api/impl/validator/produceBlockV2.test.ts index 79cc49ca82c9..976fcb0e7e8c 100644 --- a/packages/beacon-node/test/unit/api/impl/validator/produceBlockV2.test.ts +++ b/packages/beacon-node/test/unit/api/impl/validator/produceBlockV2.test.ts @@ -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; @@ -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); @@ -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); @@ -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