mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
website: updated native-bindings#blockchain-simulator
- Replaced core.GenesisAccount with types.Account
This commit is contained in:
parent
961fdeb530
commit
02cd55141f
1 changed files with 3 additions and 3 deletions
|
|
@ -505,7 +505,7 @@ 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/ethclient/simulated"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
|
|
@ -517,7 +517,7 @@ func main() {
|
|||
log.Fatalf("Failed to generate key: %v", err)
|
||||
}
|
||||
|
||||
// Since we are using a simulated backend, we will get the chain id
|
||||
// Since we are using a simulated backend, we will get the chain ID
|
||||
// from the same place that the simulated backend gets it.
|
||||
chainID := params.AllDevChainProtocolChanges.ChainID
|
||||
|
||||
|
|
@ -526,7 +526,7 @@ func main() {
|
|||
log.Fatalf("Failed to make transactor: %v", err)
|
||||
}
|
||||
|
||||
sim := simulated.NewBackend(map[common.Address]core.GenesisAccount{
|
||||
sim := simulated.NewBackend(map[common.Address]types.Account{
|
||||
auth.From: {Balance: big.NewInt(9e18)},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue