From 02cd55141f01ab1d689e35bcaaef6d0f5c87290a Mon Sep 17 00:00:00 2001 From: Mobin Mohanan <47410557+tr1sm0s1n@users.noreply.github.com> Date: Sat, 11 May 2024 20:57:24 +0530 Subject: [PATCH] website: updated native-bindings#blockchain-simulator - Replaced core.GenesisAccount with types.Account --- docs/developers/dapp-developer/native-bindings.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/developers/dapp-developer/native-bindings.md b/docs/developers/dapp-developer/native-bindings.md index f7be1c7417..1b2f40e976 100644 --- a/docs/developers/dapp-developer/native-bindings.md +++ b/docs/developers/dapp-developer/native-bindings.md @@ -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)}, })