internal/ethapi: remove test account mgr use in TestSimulateV1ChainLinkage

This commit is contained in:
lightclient 2025-02-18 14:30:54 -07:00
parent 02e46d01f1
commit eb0e1a54e8
No known key found for this signature in database
GPG Key ID: 657913021EF45A6A
1 changed files with 5 additions and 5 deletions

View File

@ -2312,12 +2312,12 @@ func TestSimulateV1(t *testing.T) {
func TestSimulateV1ChainLinkage(t *testing.T) {
var (
_, acc = newTestAccountManager(t)
sender = acc.Address
acc = newTestAccount()
sender = acc.addr
gspec = &core.Genesis{
Config: params.MergedTestChainConfig,
Alloc: types.GenesisAlloc{
acc.Address: {Balance: big.NewInt(params.Ether)},
sender: {Balance: big.NewInt(params.Ether)},
},
}
signer = types.LatestSigner(params.MergedTestChainConfig)
@ -2325,8 +2325,8 @@ func TestSimulateV1ChainLinkage(t *testing.T) {
recipient = common.Address{0xbb, 0xbb}
)
backend := newTestBackend(t, 1, gspec, beacon.New(ethash.NewFaker()), func(i int, b *core.BlockGen) {
key, _ := crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
tx := types.MustSignNewTx(key, signer, &types.LegacyTx{
tx := types.MustSignNewTx(acc.key, signer, &types.LegacyTx{
Nonce: uint64(i),
GasPrice: b.BaseFee(),
Gas: params.TxGas,