diff --git a/native/ssz_nif/src/utils/mod.rs b/native/ssz_nif/src/utils/mod.rs index 316f96777..b4ef2e758 100644 --- a/native/ssz_nif/src/utils/mod.rs +++ b/native/ssz_nif/src/utils/mod.rs @@ -44,6 +44,8 @@ macro_rules! schema_match { SignedAggregateAndProof, BeaconBlocksByRangeRequest, BeaconBlocksByRangeResponse, + BeaconBlocksByRootRequest, + BeaconBlocksByRootResponse, Transaction, Metadata, Root, diff --git a/test/unit/p2p_blocks_test.exs b/test/unit/p2p_blocks_test.exs index 32b74e56c..decbae145 100644 --- a/test/unit/p2p_blocks_test.exs +++ b/test/unit/p2p_blocks_test.exs @@ -10,7 +10,7 @@ defmodule Unit.P2PBlocks do alias LambdaEthereumConsensus.Store.Db setup do - expose(Handler, :all) + # expose(Handler, :all) start_supervised!(Db) :ok end @@ -24,7 +24,7 @@ defmodule Unit.P2PBlocks do BlockStore.store_block(signed_block_input) # ssz serialize and snappy compress the block root - with {:ok, ssz_serialized} <- Ssz.to_ssz(BeaconBlocksByRootRequest{body: [block_root]}), + with {:ok, ssz_serialized} <- Ssz.to_ssz(%BeaconBlocksByRootRequest{body: [block_root]}), {:ok, snappy_compressed_message} <- Snappy.compress(ssz_serialized) do # patch the Libp2pPort's send_request function to call the incoming_requests handler function we want to test patch(Libp2pPort, :send_request, fn _peer_id, _protocol, message ->