Skip to content

Commit

Permalink
Update p2p/starknet/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Daniil Ankushin <ankushin.daniil42@gmail.com>
Signed-off-by: wojciechos <wojciech.zieba@gmail.com>
  • Loading branch information
wojciechos and AnkushinDaniil authored Dec 12, 2024
1 parent df1ed30 commit b24a0ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2p/starknet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ func (c *Client) RequestClasses(ctx context.Context, req *spec.ClassesRequest) (
}

func (c *Client) RequestStateDiffs(ctx context.Context, req *spec.StateDiffsRequest) (iter.Seq[*spec.StateDiffsResponse], error) {
return requestAndReceiveStream[*spec.StateDiffsRequest, *spec.StateDiffsResponse](ctx, c.newStream, StateDiffPID(c.network.L2ChainID), req, c.log)
return requestAndReceiveStream[*spec.StateDiffsRequest, *spec.StateDiffsResponse](
ctx, c.newStream, StateDiffPID(c.network.L2ChainID), req, c.log,
)

}

func (c *Client) RequestTransactions(ctx context.Context, req *spec.TransactionsRequest) (iter.Seq[*spec.TransactionsResponse], error) {
Expand Down

0 comments on commit b24a0ec

Please sign in to comment.