Skip to content

Commit ef41612

Browse files
committed
return testenv instead of simultaed backend
1 parent b20daf4 commit ef41612

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bclient/bclient.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"math/big"
66

77
"github.com/bonedaddy/go-defi/sushiswap"
8+
"github.com/bonedaddy/go-defi/testenv"
89
"github.com/bonedaddy/go-defi/uniswap"
910
"github.com/bonedaddy/go-defi/utils"
10-
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
1111
"github.com/ethereum/go-ethereum/ethclient"
1212
)
1313

@@ -37,8 +37,8 @@ func NewClient(ctx context.Context, bc utils.Blockchain) (*BClient, error) {
3737
// SimulatedBackend attempts to conver the Blockchain interface to a simulated backend type
3838
// returning an error if unable to type convert the interface. This likely indicates
3939
// that an ethclient backend is being used
40-
func (bc *BClient) SimulatedBackend() (*backends.SimulatedBackend, error) {
41-
sn, ok := bc.bc.(*backends.SimulatedBackend)
40+
func (bc *BClient) SimulatedBackend() (*testenv.Testenv, error) {
41+
sn, ok := bc.bc.(*testenv.Testenv)
4242
if !ok {
4343
return nil, ErrNotSimulatedBackend
4444
}

0 commit comments

Comments
 (0)