Skip to content

Commit

Permalink
Update jsonrpc/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tarrence van As <[email protected]>
  • Loading branch information
Larkooo and tarrencev committed May 3, 2022
1 parent 3ca2ba2 commit 6d0331b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (sc *Client) BlockByNumber(ctx context.Context, number *big.Int, scope stri
return &block, nil
}

func (sc *Client) CodeByAddress(ctx context.Context, address string) (*types.Code, error) {
func (sc *Client) CodeAt(ctx context.Context, address string) (*types.Code, error) {
var contract types.Code
if err := sc.do(ctx, "starknet_getCode", &contract, address); err != nil {
return nil, err
Expand Down

0 comments on commit 6d0331b

Please sign in to comment.