mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Rename nonce to transactionCount in Account, to be compatible with ethql
This commit is contained in:
parent
4e3be4fe83
commit
928615200a
1 changed files with 2 additions and 2 deletions
|
|
@ -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!
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue