Skip to content

Commit

Permalink
more camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Nipol committed Apr 22, 2018
1 parent cf71831 commit ce72d7b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
12 changes: 6 additions & 6 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,7 +541,7 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
.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
12 changes: 6 additions & 6 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,7 +460,7 @@ material:
}
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
.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
12 changes: 6 additions & 6 deletions fr/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,7 +541,7 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Votre zombie est en train de gagner un niveau...");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
.on("receipt", function(receipt) {
$("#txStatus").text("Quelle puissance écrasante ! Le zombie a bien gagné un niveau");
Expand Down Expand Up @@ -617,7 +617,7 @@ web3js.utils.toWei("1", "ether");
Dans notre DApp, nous avons défini `levelUpFee = 0.001 ether`, ainsi quand nous appelons notre fonction `levelUp`, l'utilisateur devra s'assurer qu'il envoie `0.001` Ether avec le code suivant :

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

Expand Down
12 changes: 6 additions & 6 deletions jp/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,7 +541,7 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("Leveling up your zombie...");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
.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");
以下のコードを使うと、我々のDAppでは`levelUpFee = 0.001 ether`と設定したので、ユーザーが`levelUp`関数を呼び出す際に併せて`0.001`送信させることができる:

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

Expand Down
12 changes: 6 additions & 6 deletions pt/6/08-calling-payable-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ material:
  // a transação foi enviada
  $("#txStatus").text("Criando novo zumbi no blockchain. Isso pode demorar um pouco ...");
  // Envie o tx para nosso contrato:
  return CryptoZombies.methods.createRandomZombie(name)
  return cryptoZombies.methods.createRandomZombie(name)
  .send({from: userAccount})
  .on("receipt", function (receipt) {
    $ ("#txStatus").text("Criado com sucesso" + 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 @@ -514,7 +514,7 @@ material:
  // a transação foi enviada
  $("#txStatus").text("Criando novo zumbi no blockchain. Isso pode demorar um pouco ...");
  // Envie o tx para nosso contrato:
  return CryptoZombies.methods.createRandomZombie(name)
  return cryptoZombies.methods.createRandomZombie(name)
  .send({from: userAccount})
  .on("receipt", function (receipt) {
    $ ("#txStatus").text("Criado com sucesso" + name + "!");
Expand All @@ -532,7 +532,7 @@ material:
  // a transação foi enviada
$("#txStatus").text("Comendo um gatinho. Isso pode demorar um pouco...");
// Envie o tx para nosso contrato:
return CryptoZombies.methods.feedOnKitty(zombieId, KittyId)
return cryptoZombies.methods.feedOnKitty(zombieId, KittyId)
.send({ from: userAccount })
.on("receipt", function(receipt) {
$("#txStatus").text("Comeu um gatinho e gerou um novo Zumbi!");
Expand All @@ -547,7 +547,7 @@ material:
function levelUp(zombieId) {
$("#txStatus").text(""Upando seu zumbi..."");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001") })
.on("receipt", function(receipt) {
$("#txStatus").text("Poder esmagador! Zumbi upado com sucesso");
Expand Down Expand Up @@ -623,7 +623,7 @@ web3js.utils.toWei("1", "ether");
Em nosso DApp, definimos `levelUpFee = 0.001 ether`, então quando chamamos nossa função `levelUp`, podemos fazer o usuário enviar o `0.001` Ether junto com ele usando o seguinte código:

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

Expand Down
12 changes: 6 additions & 6 deletions zh/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 @@ -966,7 +966,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 @@ -981,7 +981,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 @@ -994,7 +994,7 @@ material:
function levelUp(zombieId) {
$("#txStatus").text("正在升级您的僵尸...");
return CryptoZombies.methods.levelUp(zombieId)
return cryptoZombies.methods.levelUp(zombieId)
.send({ from: userAccount, value: web3js.utils.toWei("0.001", "ether") })
.on("receipt", function(receipt) {
$("#txStatus").text("不得了了!僵尸成功升级啦!");
Expand Down Expand Up @@ -1069,7 +1069,7 @@ web3js.utils.toWei("1", "ether");
在我们的 DApp 里, 我们设置了 `levelUpFee = 0.001 ether`,所以调用 `levelUp` 方法的时候,我们可以让用户用以下的代码同时发送 `0.001` 以太:

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

Expand Down

0 comments on commit ce72d7b

Please sign in to comment.