From 928615200aa681c5735d102b805bf82dba3fca9c Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Mon, 15 Oct 2018 13:50:05 +0100 Subject: [PATCH] Rename nonce to transactionCount in Account, to be compatible with ethql --- ethgraphql/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethgraphql/main.go b/ethgraphql/main.go index 0302f85bfd..237b4862ce 100644 --- a/ethgraphql/main.go +++ b/ethgraphql/main.go @@ -156,7 +156,7 @@ func (a *Account) Balance(ctx context.Context) (BigNum, error) { return BigNum{state.GetBalance(a.address)}, nil } -func (a *Account) Nonce(ctx context.Context) (int32, error) { +func (a *Account) TransactionCount(ctx context.Context) (int32, error) { state, err := a.getState(ctx) if err != nil { return 0, err @@ -787,7 +787,7 @@ func NewHandler(n *node.Node) (http.Handler, error) { type Account { address: Address! balance: BigNum! - nonce: Int! + transactionCount: Int! code: HexBytes! storage(slot: Bytes32!): Bytes32! }