Skip to content

Commit

Permalink
deprecate avago keystore (#1426)
Browse files Browse the repository at this point in the history
* deprecate avago keystore

* lint
  • Loading branch information
arturrez authored Jan 22, 2025
1 parent c16a9dc commit 68711e0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plugin/evm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/ava-labs/avalanchego/api/keystore"
"github.com/ava-labs/avalanchego/chains/atomic"
"github.com/ava-labs/avalanchego/database"
"github.com/ava-labs/avalanchego/database/memdb"
Expand All @@ -36,7 +35,6 @@ import (
"github.com/ava-labs/avalanchego/snow/engine/enginetest"
"github.com/ava-labs/avalanchego/upgrade"
"github.com/ava-labs/avalanchego/utils/formatting"
"github.com/ava-labs/avalanchego/utils/logging"
"github.com/ava-labs/avalanchego/vms/components/chain"

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

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

userKeystore := keystore.New(logging.NoLog{}, memdb.New())
if err := userKeystore.CreateUser(username, password); err != nil {
t.Fatal(err)
}
ctx.Keystore = userKeystore.NewBlockchainKeyStore(ctx.ChainID)

issuer := make(chan commonEng.Message, 1)
prefixedDB := prefixdb.New([]byte{1}, baseDB)
return ctx, prefixedDB, genesisBytes, issuer, atomicMemory
Expand Down

0 comments on commit 68711e0

Please sign in to comment.