|
|
@ -287,7 +287,7 @@ func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// listAccounts will return a list of addresses for accounts this node manages.
|
|
|
|
// ListAccounts will return a list of addresses for accounts this node manages.
|
|
|
|
func (s *PrivateAccountAPI) ListAccounts() []common.Address { |
|
|
|
func (s *PrivateAccountAPI) ListAccounts() []common.Address { |
|
|
|
return s.am.Accounts() |
|
|
|
return s.am.Accounts() |
|
|
|
} |
|
|
|
} |
|
|
@ -1656,7 +1656,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha |
|
|
|
fields["status"] = hexutil.Uint(receipt.Status) |
|
|
|
fields["status"] = hexutil.Uint(receipt.Status) |
|
|
|
} |
|
|
|
} |
|
|
|
if receipt.Logs == nil { |
|
|
|
if receipt.Logs == nil { |
|
|
|
fields["logs"] = [][]*types.Log{} |
|
|
|
fields["logs"] = []*types.Log{} |
|
|
|
} |
|
|
|
} |
|
|
|
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
|
|
|
|
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
|
|
|
|
if receipt.ContractAddress != (common.Address{}) { |
|
|
|
if receipt.ContractAddress != (common.Address{}) { |
|
|
|