From 0a430d93098a080aad1e2a4ff43e7e107e3e0039 Mon Sep 17 00:00:00 2001 From: William Sanches Date: Tue, 11 Dec 2018 18:14:47 -0200 Subject: [PATCH] Update FetchedBeneficiary typespec --- .../lib/ethereum_jsonrpc/fetched_beneficiary.ex | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/fetched_beneficiary.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/fetched_beneficiary.ex index 3abe09a58f..daf41053cd 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/fetched_beneficiary.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/fetched_beneficiary.ex @@ -3,6 +3,15 @@ defmodule EthereumJSONRPC.FetchedBeneficiary do A single balance request params for the beneficiary of a block. """ - @type params :: %{address_hash: EthereumJSONRPC.hash(), block_number: non_neg_integer()} + alias Explorer.Chain.Block.Reward.AddressType + alias Explorer.Chain.Hash + + @type params :: %{ + address_hash: EthereumJSONRPC.hash(), + address_type: AddressType.t(), + block_hash: Hash.Full.t(), + block_number: non_neg_integer(), + reward: String.t() + } @type error :: %{code: integer(), message: String.t(), data: %{block_number: non_neg_integer()}} end