From 3b2290d590a7182b1c72322cfc4957be4a90fe99 Mon Sep 17 00:00:00 2001 From: Augustus Chang Date: Thu, 13 Jun 2024 14:25:01 -0400 Subject: [PATCH] read pending block not latest --- relayer/pkg/starknet/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relayer/pkg/starknet/client.go b/relayer/pkg/starknet/client.go index 29ef1b03..9b473ea1 100644 --- a/relayer/pkg/starknet/client.go +++ b/relayer/pkg/starknet/client.go @@ -92,7 +92,7 @@ func (c *Client) CallContract(ctx context.Context, ops CallOps) (data []*felt.Fe Calldata: ops.Calldata, } - res, err := c.Call(ctx, tx, starknetrpc.WithBlockTag("latest")) + res, err := c.Call(ctx, tx, starknetrpc.WithBlockTag("pending")) if err != nil { return nil, fmt.Errorf("error in client.CallContract: %w", err) }