From 2dff8cc55abe993503c3d8eea4d026c6f1253a19 Mon Sep 17 00:00:00 2001 From: Augustus Chang Date: Tue, 30 Jul 2024 15:41:31 -0400 Subject: [PATCH] use pending block --- 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 29ef1b03e..9b473ea16 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) }