diff --git a/rpc/handler.go b/rpc/handler.go index 8f799a41f..2a9c8cf1b 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -331,7 +331,7 @@ func (h *handler) addRequestOp(op *requestOp) { } } -// removeRequestOps stops waiting for the given request IDs. +// removeRequestOp stops waiting for the given request IDs. func (h *handler) removeRequestOp(op *requestOp) { for _, id := range op.ids { delete(h.respWait, string(id)) @@ -395,7 +395,7 @@ func (h *handler) startCallProc(fn func(*callProc)) { }) } -// handleResponse processes method call responses. +// handleResponses processes method call responses. func (h *handler) handleResponses(batch []*jsonrpcMessage, handleCall func(*jsonrpcMessage)) { var resolvedops []*requestOp handleResp := func(msg *jsonrpcMessage) { diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go index 5312f8751..5bc6cbc61 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -307,7 +307,7 @@ func fromHex(data any) ([]byte, error) { return nil, fmt.Errorf("wrong type %T", data) } -// typeDataRequest tries to convert the data into a SignDataRequest. +// typedDataRequest tries to convert the data into a SignDataRequest. func typedDataRequest(data any) (*SignDataRequest, error) { var typedData apitypes.TypedData if td, ok := data.(apitypes.TypedData); ok { diff --git a/trie/dummy_trie.go b/trie/dummy_trie.go index 41478253d..4c0045398 100644 --- a/trie/dummy_trie.go +++ b/trie/dummy_trie.go @@ -47,7 +47,7 @@ func (t *EmptyTrie) UpdateStorage(_ common.Address, key, value []byte) error { return nil } -// TryUpdateAccount abstract an account write in the trie. +// UpdateAccount abstract an account write in the trie. func (t *EmptyTrie) UpdateAccount(address common.Address, account *types.StateAccount) error { return nil }