Skip to content

Commit

Permalink
Merge pull request CryptozombiesHQ#246 from Nipol/fix-typo-lesson6-7
Browse files Browse the repository at this point in the history
Lesson6 Fix Typos
  • Loading branch information
eduardonunesp authored Jul 3, 2018
2 parents f51d529 + 2d52b40 commit f6dcf64
Show file tree
Hide file tree
Showing 18 changed files with 104 additions and 104 deletions.
6 changes: 3 additions & 3 deletions en/6/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -500,7 +500,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Eating a kitty. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand Down Expand Up @@ -582,7 +582,7 @@ function createRandomZombie(name) {
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand Down
14 changes: 7 additions & 7 deletions en/6/08.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -81,7 +81,7 @@ material:
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand Down Expand Up @@ -513,7 +513,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -528,7 +528,7 @@ material:
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -541,8 +541,8 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down Expand Up @@ -616,7 +616,7 @@ web3js.utils.toWei("1", "ether");
In our DApp, we set `levelUpFee = 0.001 ether`, so when we call our `levelUp` function, we can make the user send `0.001` Ether along with it using the following code:

```
CryptoZombies.methods.levelUp(zombieId)
cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001", "ether") })
```

Expand Down
16 changes: 8 additions & 8 deletions en/6/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -83,7 +83,7 @@ material:
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -96,8 +96,8 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down Expand Up @@ -531,7 +531,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -546,7 +546,7 @@ material:
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -559,8 +559,8 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down
6 changes: 3 additions & 3 deletions es/6/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -422,7 +422,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Eating a kitty. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand Down Expand Up @@ -497,7 +497,7 @@ function createRandomZombie(name) {
// se haya completado correctamente.
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Enviar el texto a nuestro contrato:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand Down
14 changes: 7 additions & 7 deletions es/6/08.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ material:
// sepa que la transacción se ha hecho correctamente
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Enviar el texto hacia nuestro contrato:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -75,7 +75,7 @@ material:
}
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand Down Expand Up @@ -434,7 +434,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -448,7 +448,7 @@ material:
}
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -460,8 +460,8 @@ material:
}
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down Expand Up @@ -527,7 +527,7 @@ web3js.utils.toWei("1", "ether");
En nuestra DApp, configuramos `levelUpFee = 0.001 ether`, así que cuando llamamos a nuestra función `levelUp`, podemos hacer que el usuario envíe` 0.001` Ether junto con la función usando el siguiente código:

```
CryptoZombies.methods.levelUp(zombieId)
cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001", "ether") })
```

Expand Down
16 changes: 8 additions & 8 deletions es/6/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ material:
// sepa que la transacción se ha hecho correctamente
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Enviar el texto hacia nuestro contrato:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -76,7 +76,7 @@ material:
}
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -88,8 +88,8 @@ material:
}
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down Expand Up @@ -450,7 +450,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -464,7 +464,7 @@ material:
}
function feedOnKitty(zombieId, kittyId) {
$("#txStatus").text("Eating a kitty. This may take a while...");
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Ate a kitty and spawned a new Zombie!");
Expand All @@ -476,8 +476,8 @@ material:
}
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001") })
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("Power overwhelming! Zombie successfully leveled up");
})
Expand Down
6 changes: 3 additions & 3 deletions fr/6/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ material:
// the transaction has been sent
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Send the tx to our contract:
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand All @@ -500,7 +500,7 @@ material:
// the transaction has been sent
$("#txStatus").text("En train de manger un chaton, cela peut prendre du temps...");
// Send the tx to our contract:
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("A mangé un chaton et a engendré un nouveau Zombie !");
Expand Down Expand Up @@ -582,7 +582,7 @@ function createRandomZombie(name) {
// signaler à l'utilisateur que la transaction a été envoyée
$("#txStatus").text("Creating new zombie on the blockchain. This may take a while...");
// Nous envoyons la tx à notre contrat :
return CryptoZombies.methods.createRandomZombie(name)
return cryptoZombies.methods.createRandomZombie(name)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Successfully created " + name + "!");
Expand Down
Loading

0 comments on commit f6dcf64

Please sign in to comment.