mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update error messages to match previous version
This commit is contained in:
parent
7d51b5ff96
commit
d800322055
1 changed files with 5 additions and 5 deletions
|
|
@ -504,7 +504,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
key, err := crypto.GenerateKey()
|
key, err := crypto.GenerateKey()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("generating key: %v", err)
|
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
|
||||||
|
|
@ -513,7 +513,7 @@ func main() {
|
||||||
|
|
||||||
auth, err := bind.NewKeyedTransactorWithChainID(key, chainID)
|
auth, err := bind.NewKeyedTransactorWithChainID(key, chainID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("making transactor: %v", err)
|
log.Fatalf("Failed to make transactor: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
sim := simulated.NewBackend(map[common.Address]core.GenesisAccount{
|
sim := simulated.NewBackend(map[common.Address]core.GenesisAccount{
|
||||||
|
|
@ -522,7 +522,7 @@ func main() {
|
||||||
|
|
||||||
_, tx, store, err := DeployStorage(auth, sim.Client())
|
_, tx, store, err := DeployStorage(auth, sim.Client())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("deploying smart contract: %v", err)
|
log.Fatalf("Failed to deploy smart contract: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Deploy pending: 0x%x\n", tx.Hash())
|
fmt.Printf("Deploy pending: 0x%x\n", tx.Hash())
|
||||||
|
|
@ -531,7 +531,7 @@ func main() {
|
||||||
|
|
||||||
tx, err = store.Store(auth, big.NewInt(420))
|
tx, err = store.Store(auth, big.NewInt(420))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("calling store method: %v", err)
|
log.Fatalf("Failed to call store method: %v", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("State update pending: 0x%x\n", tx.Hash())
|
fmt.Printf("State update pending: 0x%x\n", tx.Hash())
|
||||||
|
|
||||||
|
|
@ -539,7 +539,7 @@ func main() {
|
||||||
|
|
||||||
val, err := store.Retrieve(nil)
|
val, err := store.Retrieve(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("calling retrieve method: %v", err)
|
log.Fatalf("Failed to call retrieve method: %v", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("Value: %v\n", val)
|
fmt.Printf("Value: %v\n", val)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue