Skip to content

Commit

Permalink
Query class definitions on pending state (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak authored Jan 22, 2024
1 parent 12bad37 commit a99d71a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clients/feeder/feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ func (c *Client) Block(ctx context.Context, blockID string) (*starknet.Block, er

func (c *Client) ClassDefinition(ctx context.Context, classHash *felt.Felt) (*starknet.ClassDefinition, error) {
queryURL := c.buildQueryString("get_class_by_hash", map[string]string{
"classHash": classHash.String(),
"classHash": classHash.String(),
"blockNumber": "pending",
})

body, err := c.get(ctx, queryURL)
Expand All @@ -347,7 +348,8 @@ func (c *Client) ClassDefinition(ctx context.Context, classHash *felt.Felt) (*st

func (c *Client) CompiledClassDefinition(ctx context.Context, classHash *felt.Felt) (*starknet.CompiledClass, error) {
queryURL := c.buildQueryString("get_compiled_class_by_class_hash", map[string]string{
"classHash": classHash.String(),
"classHash": classHash.String(),
"blockNumber": "pending",
})

body, err := c.get(ctx, queryURL)
Expand Down

0 comments on commit a99d71a

Please sign in to comment.