Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TestKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
)
Functions ¶
func NewTestChain ¶
Types ¶
type SimulatedBackend ¶
type SimulatedBackend struct {
*backends.SimulatedBackend
}
GETH's simulated backend is missing a few methods from the ethclient that we use. This backend augments the simulated backend with those methods to simplify testing.
func NewSimulatedBackend ¶
func NewSimulatedBackend(t testing.TB, auth *bind.TransactOpts) *SimulatedBackend
func (*SimulatedBackend) BlockNumber ¶
func (b *SimulatedBackend) BlockNumber(ctx context.Context) (uint64, error)
Click to show internal directories.
Click to hide internal directories.