Skip to content

Commit

Permalink
Fix rpc error type
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Whitehead <[email protected]>
  • Loading branch information
matthew1001 committed Dec 14, 2022
1 parent 7c3ba39 commit cd19c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethereum/get_address_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (c *ethConnector) AddressBalance(ctx context.Context, req *ffcapi.AddressBa
}
err := c.backend.CallRPC(ctx, &addressBalance, "eth_getBalance", req.Address, blockTag)
if err != nil {
return nil, "", err
return nil, "", err.Error()
}

return &ffcapi.AddressBalanceResponse{
Expand Down

0 comments on commit cd19c5d

Please sign in to comment.