Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
so the output of `TypedData.MarshalJSON()` is exactly as the original JSON.
- Wrong encoding of the `selector` type in the `typedData` pkg for a specific case, when the value was already a hashed selector.
More details in the PR [793](https://github.com/NethermindEth/starknet.go/pull/793).
- Not using the provided `context.Context` in the `account.Nonce` method when calling the `rpc.Nonce` method.

### Dev updates
- New `internal/tests/jsonrpc_spy.go` file containing a `Spy` type for spying JSON-RPC calls in tests. The
Expand Down
2 changes: 1 addition & 1 deletion account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func NewAccount(

// Nonce retrieves the nonce for the account's contract address.
func (account *Account) Nonce(ctx context.Context) (*felt.Felt, error) {
return account.Provider.Nonce(context.Background(), rpc.WithBlockTag("pre_confirmed"), account.Address)
return account.Provider.Nonce(ctx, rpc.WithBlockTag("pre_confirmed"), account.Address)
}

// PrecomputeAccountAddress calculates the precomputed address for an account.
Expand Down
Loading