Skip to content

Commit

Permalink
Merge branch 'main' into v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev authored Jan 30, 2025
2 parents 9199306 + a688cba commit f7015b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<a href="https://github.com/nethermindeth/starknet.go/actions/workflows/test.yml">
<img src="https://github.com/nethermindeth/starknet.go/actions/workflows/test.yml/badge.svg?branch=main" alt="test">
</a>
<a href="https://github.com/nethermindeth/starknet.go">
<a href="https://github.com/NethermindEth/starknet.go/stargazers">
<img src="https://img.shields.io/github/stars/nethermindeth/starknet.go?style=social"/>
</a>
</p>

</p>
<p align="center">
<a href="https://twitter.com/NethermindStark">
<a href="https://x.com/NethermindStark">
<img src="https://img.shields.io/twitter/follow/NethermindStark?style=social"/>
</a>
<a href="https://t.me/StarknetGo">
Expand Down Expand Up @@ -96,6 +96,15 @@ go run main.go

> Check [here](examples/deployContractUDC/README.md) for more details.
***starknet typedData***

```sh
cd examples/typedData
go run main.go
```

> Check [here](examples/typedData/README.md) for more details.
<br/> Check [here](https://github.com/NethermindEth/starknet.go/tree/main/examples) for some FAQ answered by these examples.


Expand Down
4 changes: 4 additions & 0 deletions rpc/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import (
// - []*felt.Felt: the result of the function call
// - error: an error if any occurred during the execution
func (provider *Provider) Call(ctx context.Context, request FunctionCall, blockID BlockID) ([]*felt.Felt, error) {
if request.Calldata == nil {
request.Calldata = []*felt.Felt{}
}

var result []*felt.Felt
if err := do(ctx, provider.c, "starknet_call", &result, request, blockID); err != nil {
return nil, tryUnwrapToRPCErr(err, ErrContractNotFound, ErrContractError, ErrBlockNotFound)
Expand Down

0 comments on commit f7015b7

Please sign in to comment.