website: updated native-bindings#blockchain-simulator

- Replaced core.GenesisAccount with types.Account
This commit is contained in:
Mobin Mohanan 2024-05-11 20:57:24 +05:30 committed by GitHub
parent 961fdeb530
commit 02cd55141f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)},
})