From 45554f0f2f672a586bc2ca0e46a8c0cbff0ef99e Mon Sep 17 00:00:00 2001
From: Olexandr88
Date: Mon, 13 Jan 2025 16:46:46 +0200
Subject: [PATCH 1/3] docs: changed the link to shield stars (#652)
Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e9f8b1cc..4e4c66c4 100644
--- a/README.md
+++ b/README.md
@@ -15,14 +15,14 @@
-
+
-
+
From 46011b23c93a4ace41cde1b2044ad9f87af33c17 Mon Sep 17 00:00:00 2001
From: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com>
Date: Tue, 21 Jan 2025 06:43:33 -0300
Subject: [PATCH 2/3] Update README.md to include typedData example (#653)
---
README.md | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/README.md b/README.md
index 4e4c66c4..a2551938 100644
--- a/README.md
+++ b/README.md
@@ -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.
+
Check [here](https://github.com/NethermindEth/starknet.go/tree/main/examples) for some FAQ answered by these examples.
From a688cbacd3d7bcca2d91ce6560e699c6768c81d0 Mon Sep 17 00:00:00 2001
From: Franco Barpp Gomes
Date: Fri, 24 Jan 2025 02:19:12 +0900
Subject: [PATCH 3/3] Ensure starknet_call calldata is not null (#658)
* fix: Fix function call calldata possibly nil
* refactor: Remove empty calldata package var
---
rpc/call.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rpc/call.go b/rpc/call.go
index 4d29cf1d..651edd94 100644
--- a/rpc/call.go
+++ b/rpc/call.go
@@ -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)