Skip to content

Commit 203b289

Browse files
authored
fix typos
1 parent 40d26ef commit 203b289

File tree

1 file changed

+2
-2
lines changed
  • public/content/translations/pl/developers/tutorials/calling-a-smart-contract-from-javascript

1 file changed

+2
-2
lines changed

public/content/translations/pl/developers/tutorials/calling-a-smart-contract-from-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Pierwszy przykład wywoła metodę „stałą” i wykona metodę inteligentnego
102102
Możesz uzyskać dostęp do metod utworzonej instancji kontraktu inteligentnego, dla którego podano ABI, w następujący sposób: `yourContract.methods.methodname`. Używając funkcji `call`, otrzymasz wynik wykonania funkcji.
103103

104104
```js
105-
daiToken.methods.balanceOf(senderAddress).call(function (err, res) { if (err) { console.log("An error occured", err) return } console.log("The balance is: ", res)})
105+
daiToken.methods.balanceOf(senderAddress).call(function (err, res) { if (err) { console.log("An error occurred", err) return } console.log("The balance is: ", res)})
106106
```
107107

108108
Pamiętaj, że DAI ERC20 ma 18 miejsc po przecinku, co oznacza, że ​​musisz usunąć 18 zer, aby uzyskać prawidłową kwotę. uint256 są zwracane jako ciągi, ponieważ JavaScript nie obsługuje dużych wartości numerycznych. Jeśli nie masz pewności, [jak radzić sobie z dużymi liczbami w JS, sprawdź nasz samouczek na temat bignumber.js](https://ethereumdev.io/how-to-deal-with-big-numbers-in-javascript/).
@@ -116,7 +116,7 @@ daiToken.methods
116116
.transfer(receiverAddress, "100000000000000000000")
117117
.send({ from: senderAddress }, function (err, res) {
118118
if (err) {
119-
console.log("An error occured", err)
119+
console.log("An error occurred", err)
120120
return
121121
}
122122
console.log("Hash of the transaction: " + res)

0 commit comments

Comments
 (0)