Skip to content

Commit

Permalink
Merge branch 'main' into fix-contract-class-unmarshall-for-modern-cai…
Browse files Browse the repository at this point in the history
…ro-compilers
  • Loading branch information
baitcode authored Jan 23, 2025
2 parents 5173de0 + a688cba commit 4e16404
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
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 4e16404

Please sign in to comment.