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