mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
internal/ethapi: remove test account mgr use in TestSimulateV1ChainLinkage
This commit is contained in:
parent
5d2dec282c
commit
771d805705
1 changed files with 5 additions and 5 deletions
|
|
@ -2312,12 +2312,12 @@ func TestSimulateV1(t *testing.T) {
|
||||||
|
|
||||||
func TestSimulateV1ChainLinkage(t *testing.T) {
|
func TestSimulateV1ChainLinkage(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
_, acc = newTestAccountManager(t)
|
acc = newTestAccount()
|
||||||
sender = acc.Address
|
sender = acc.addr
|
||||||
gspec = &core.Genesis{
|
gspec = &core.Genesis{
|
||||||
Config: params.MergedTestChainConfig,
|
Config: params.MergedTestChainConfig,
|
||||||
Alloc: types.GenesisAlloc{
|
Alloc: types.GenesisAlloc{
|
||||||
acc.Address: {Balance: big.NewInt(params.Ether)},
|
sender: {Balance: big.NewInt(params.Ether)},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
signer = types.LatestSigner(params.MergedTestChainConfig)
|
signer = types.LatestSigner(params.MergedTestChainConfig)
|
||||||
|
|
@ -2325,8 +2325,8 @@ func TestSimulateV1ChainLinkage(t *testing.T) {
|
||||||
recipient = common.Address{0xbb, 0xbb}
|
recipient = common.Address{0xbb, 0xbb}
|
||||||
)
|
)
|
||||||
backend := newTestBackend(t, 1, gspec, beacon.New(ethash.NewFaker()), func(i int, b *core.BlockGen) {
|
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),
|
Nonce: uint64(i),
|
||||||
GasPrice: b.BaseFee(),
|
GasPrice: b.BaseFee(),
|
||||||
Gas: params.TxGas,
|
Gas: params.TxGas,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue