diff --git a/ethclient/simulated/backend.go b/ethclient/simulated/backend.go index a415ce46c8..0a8e846ce3 100644 --- a/ethclient/simulated/backend.go +++ b/ethclient/simulated/backend.go @@ -21,7 +21,6 @@ import ( "time" "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/eth" @@ -36,8 +35,6 @@ import ( "github.com/ethereum/go-ethereum/rpc" ) -var _ bind.ContractBackend = (Client)(nil) - // Backend is a simulated blockchain. You can use it to test your contracts or // other code that interacts with the Ethereum chain. type Backend struct { diff --git a/ethclient/simulated/backend_test.go b/ethclient/simulated/backend_test.go index 0f55d4b50f..d40e2fb98d 100644 --- a/ethclient/simulated/backend_test.go +++ b/ethclient/simulated/backend_test.go @@ -24,6 +24,7 @@ import ( "testing" "time" + "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" @@ -31,6 +32,8 @@ import ( "github.com/ethereum/go-ethereum/params" ) +var _ bind.ContractBackend = (Client)(nil) + var ( testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") testAddr = crypto.PubkeyToAddress(testKey.PublicKey)