Skip to content

Commit f01e2fa

Browse files
rodneyosodoholiman
andauthored
internal/ethapi: fix incorrect type on empty slice (ethereum#24372)
* Fixes ethereum#24368 Signed-off-by: 0x6f736f646f <[email protected]> * Update internal/ethapi/api.go Co-authored-by: Martin Holst Swende <[email protected]>
1 parent 6c3513c commit f01e2fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
287287
}
288288
}
289289

290-
// listAccounts will return a list of addresses for accounts this node manages.
290+
// ListAccounts will return a list of addresses for accounts this node manages.
291291
func (s *PrivateAccountAPI) ListAccounts() []common.Address {
292292
return s.am.Accounts()
293293
}
@@ -1656,7 +1656,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha
16561656
fields["status"] = hexutil.Uint(receipt.Status)
16571657
}
16581658
if receipt.Logs == nil {
1659-
fields["logs"] = [][]*types.Log{}
1659+
fields["logs"] = []*types.Log{}
16601660
}
16611661
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
16621662
if receipt.ContractAddress != (common.Address{}) {

0 commit comments

Comments
 (0)