Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Jul 15, 2024
1 parent 3942bc5 commit 74da321
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions system_tests/test_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
Expand Down Expand Up @@ -110,8 +109,8 @@ func (b *BlockchainTestInfo) GenerateGenesisAccount(name string, balance *big.In
})
}

func (b *BlockchainTestInfo) GetGenesisAlloc() core.GenesisAlloc {
alloc := make(core.GenesisAlloc)
func (b *BlockchainTestInfo) GetGenesisAlloc() types.GenesisAlloc {
alloc := make(types.GenesisAlloc)
for _, info := range b.ArbInitData.Accounts {
var contractCode []byte
contractStorage := make(map[common.Hash]common.Hash)
Expand All @@ -121,7 +120,7 @@ func (b *BlockchainTestInfo) GetGenesisAlloc() core.GenesisAlloc {
contractStorage[k] = v
}
}
alloc[info.Addr] = core.GenesisAccount{
alloc[info.Addr] = types.Account{
Balance: new(big.Int).Set(info.EthBalance),
Nonce: info.Nonce,
Code: contractCode,
Expand Down

0 comments on commit 74da321

Please sign in to comment.