mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32: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
|
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)
|
state, err := a.getState(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
|
@ -787,7 +787,7 @@ func NewHandler(n *node.Node) (http.Handler, error) {
|
||||||
type Account {
|
type Account {
|
||||||
address: Address!
|
address: Address!
|
||||||
balance: BigNum!
|
balance: BigNum!
|
||||||
nonce: Int!
|
transactionCount: Int!
|
||||||
code: HexBytes!
|
code: HexBytes!
|
||||||
storage(slot: Bytes32!): Bytes32!
|
storage(slot: Bytes32!): Bytes32!
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue