Skip to content

Commit

Permalink
read pending block not latest
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Jun 13, 2024
1 parent e2ec96b commit 3b2290d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/pkg/starknet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3b2290d

Please sign in to comment.