func NewSimulator(wallet *Wallet, accounts []Address) (*Deployer, error) {
	genesisAlloc := make(core.GenesisAlloc)

	for _, account := range accounts {
		(genesisAlloc)[account] = core.GenesisAccount{Balance: big.NewInt(1e18)}
	}

	simulator := backends.NewSimulatedBackend(genesisAlloc)

	return &Deployer{
		Wallet:  wallet,
		Backend: simulator,
	}, nil
}
// NewSimulator returns a simulated deployer. The given wallet is used for signing transactions.
// Each ethereum address in the list of given accounts is funded with one ether
NewSimulator returns a simulated deployer. The given wallet is used for signing transactions.
Each ethereum address in the list of given accounts is funded with one ether
// NewSimulator returns a simulated deployer . The given wallet is used for signing transactions . // Each ethereum address in the list of given accounts is funded with one ether
func NewSimulator(wallet *Wallet, accounts []Address) (*Deployer, error) {
	genesisAlloc := make(core.GenesisAlloc)
	for _, account := range accounts {
		(genesisAlloc)[account] = core.GenesisAccount{Balance: big.NewInt(1e18)}
	}
	simulator := backends.NewSimulatedBackend(genesisAlloc)
	return &Deployer{
		Wallet:  wallet,
		Backend: simulator,
	}, nil
}
func NewSimulator ( wallet * Wallet , accounts [ ] Address ) ( * Deployer , error ) { genesisAlloc := make ( core . GenesisAlloc ) for _ , account := range accounts { ( genesisAlloc ) [ account ] = core . GenesisAccount { Balance : big . NewInt ( 1e18 ) } } simulator := backends . NewSimulatedBackend ( genesisAlloc ) return & Deployer { Wallet : wallet , Backend : simulator , } , nil }
NewSimulator returns a simulated deployer.
NewSimulator returns a simulated deployer .