mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
ethclient: add NetworkIDReader interface
This commit is contained in:
parent
c3ff17b2c7
commit
a354d182d9
1 changed files with 5 additions and 0 deletions
|
|
@ -298,6 +298,11 @@ type ChainIDReader interface {
|
||||||
ChainID(ctx context.Context) (*big.Int, error)
|
ChainID(ctx context.Context) (*big.Int, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NetworkIDReader provides access to the network ID.
|
||||||
|
type NetworkIDReader interface {
|
||||||
|
NetworkID(ctx context.Context) (*big.Int, error)
|
||||||
|
}
|
||||||
|
|
||||||
// OverrideAccount specifies the state of an account to be overridden.
|
// OverrideAccount specifies the state of an account to be overridden.
|
||||||
type OverrideAccount struct {
|
type OverrideAccount struct {
|
||||||
// Nonce sets nonce of the account. Note: the nonce override will only
|
// Nonce sets nonce of the account. Note: the nonce override will only
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue