Skip to content

Commit 68711e0

Browse files
authored
deprecate avago keystore (#1426)
* deprecate avago keystore * lint
1 parent c16a9dc commit 68711e0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

plugin/evm/vm_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/stretchr/testify/assert"
2525
"github.com/stretchr/testify/require"
2626

27-
"github.com/ava-labs/avalanchego/api/keystore"
2827
"github.com/ava-labs/avalanchego/chains/atomic"
2928
"github.com/ava-labs/avalanchego/database"
3029
"github.com/ava-labs/avalanchego/database/memdb"
@@ -36,7 +35,6 @@ import (
3635
"github.com/ava-labs/avalanchego/snow/engine/enginetest"
3736
"github.com/ava-labs/avalanchego/upgrade"
3837
"github.com/ava-labs/avalanchego/utils/formatting"
39-
"github.com/ava-labs/avalanchego/utils/logging"
4038
"github.com/ava-labs/avalanchego/vms/components/chain"
4139

4240
accountKeystore "github.com/ava-labs/subnet-evm/accounts/keystore"
@@ -68,8 +66,6 @@ var (
6866
testMinGasPrice int64 = 225_000_000_000
6967
testKeys []*ecdsa.PrivateKey
7068
testEthAddrs []common.Address // testEthAddrs[i] corresponds to testKeys[i]
71-
username = "Johns"
72-
password = "CjasdjhiPeirbSenfeI13" // #nosec G101
7369

7470
firstTxAmount = new(big.Int).Mul(big.NewInt(testMinGasPrice), big.NewInt(21000*100))
7571
genesisBalance = new(big.Int).Mul(big.NewInt(testMinGasPrice), big.NewInt(21000*1000))
@@ -160,12 +156,6 @@ func setupGenesis(
160156
// The caller of this function is responsible for unlocking.
161157
ctx.Lock.Lock()
162158

163-
userKeystore := keystore.New(logging.NoLog{}, memdb.New())
164-
if err := userKeystore.CreateUser(username, password); err != nil {
165-
t.Fatal(err)
166-
}
167-
ctx.Keystore = userKeystore.NewBlockchainKeyStore(ctx.ChainID)
168-
169159
issuer := make(chan commonEng.Message, 1)
170160
prefixedDB := prefixdb.New([]byte{1}, baseDB)
171161
return ctx, prefixedDB, genesisBytes, issuer, atomicMemory

0 commit comments

Comments
 (0)