Skip to content

Commit 321ab9e

Browse files
authored
Merge pull request #12222 from omahs/patch-5
Fix dead link (OpenZeppelin Contracts Wizard)
2 parents 0ddaee9 + 67b631a commit 321ab9e

File tree

5 files changed

+7
-7
lines changed
  • public/content
    • developers/tutorials/erc20-with-safety-rails
    • translations
      • fr/developers/tutorials/erc20-with-safety-rails
      • it/developers/tutorials/erc20-with-safety-rails
      • pt-br/developers/tutorials/erc20-with-safety-rails
      • tr/developers/tutorials/erc20-with-safety-rails

5 files changed

+7
-7
lines changed

public/content/developers/tutorials/erc20-with-safety-rails/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you want to see the complete source code:
2323

2424
## Creating an ERC-20 contract {#creating-an-erc-20-contract}
2525

26-
Before we can add the safety rail functionality we need an ERC-20 contract. In this article we'll use [the OpenZeppelin Contracts Wizard](https://docs.openzeppelin.com/contracts/4.x/wizard). Open it in another browser and follow these instructions:
26+
Before we can add the safety rail functionality we need an ERC-20 contract. In this article we'll use [the OpenZeppelin Contracts Wizard](https://docs.openzeppelin.com/contracts/5.x/wizard). Open it in another browser and follow these instructions:
2727

2828
1. Select **ERC20**.
2929
2. Enter these settings:
@@ -92,7 +92,7 @@ We want to add these requirements to the function:
9292

9393
- The `to` address cannot equal `address(this)`, the address of the ERC-20 contract itself.
9494
- The `to` address cannot be empty, it has to be either:
95-
- An externally owned accounts (EOA). We can't check if an address is an EOA directly, but we can check an address's ETH balance. EOAs almost always have a balance, even if they are no longer used - it's difficult to clear them to the last wei.
95+
- An externally owned account (EOA). We can't check if an address is an EOA directly, but we can check an address's ETH balance. EOAs almost always have a balance, even if they are no longer used - it's difficult to clear them to the last wei.
9696
- A smart contract. Testing if an address is a smart contract is a bit harder. There is an opcode that checks the external code length, called [`EXTCODESIZE`](https://www.evm.codes/#3b), but it is not available directly in Solidity. We have to use [Yul](https://docs.soliditylang.org/en/v0.8.15/yul.html), which is EVM assembly, for it. There are other values we could use from Solidity ([`<address>.code` and `<address>.codehash`](https://docs.soliditylang.org/en/v0.8.15/units-and-global-variables.html#members-of-address-types)), but they cost more.
9797

9898
Lets go over the new code line by line:
@@ -209,4 +209,4 @@ This is a cleanup function, so presumably we don't want to leave any tokens. Ins
209209

210210
## Conclusion {#conclusion}
211211

212-
This is not a perfect solution - there is no perfect solution for the "user made a mistake" problem. However, using these kind of checks can at least prevent some mistakes. The ability to freeze accounts, while dangerous, can be used to limit the damage of certain hacks by denying the hacker the stolen funds.
212+
This is not a perfect solution - there is no perfect solution for the "user made a mistake" problem. However, using these kinds of checks can at least prevent some mistakes. The ability to freeze accounts, while dangerous, can be used to limit the damage of certain hacks by denying the hacker the stolen funds.

public/content/translations/fr/developers/tutorials/erc20-with-safety-rails/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Si vous souhaitez consulter le code source complet :
2424

2525
## Création d'un contrat ERC-20 {#creating-an-erc-20-contract}
2626

27-
Avant de pouvoir ajouter la fonctionnalité de sécurité, nous avons besoin d'un contrat ERC-20. Dans cet article, nous utiliserons [l'assistant de contrats OpenZeppelin](https://docs.openzeppelin.com/contracts/4.x/wizard). Ouvrez-le dans un autre navigateur et suivez ces instructions :
27+
Avant de pouvoir ajouter la fonctionnalité de sécurité, nous avons besoin d'un contrat ERC-20. Dans cet article, nous utiliserons [l'assistant de contrats OpenZeppelin](https://docs.openzeppelin.com/contracts/5.x/wizard). Ouvrez-le dans un autre navigateur et suivez ces instructions :
2828

2929
1. Sélectionnez **ERC20**.
3030
2. Entrez ces paramètres :

public/content/translations/it/developers/tutorials/erc20-with-safety-rails/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Se desideri visualizzare il codice sorgente completo:
2424

2525
## Creare un contratto ERC-20 {#creating-an-erc-20-contract}
2626

27-
Prima di poter aggiungere la funzionalità della barriera di sicurezza, ci occorre un contratto ERC-20. In questo articolo utilizzeremo [la procedura guidata dei contratti di OpenZeppelin](https://docs.openzeppelin.com/contracts/4.x/wizard). Aprila in un altro browser e segui queste istruzioni:
27+
Prima di poter aggiungere la funzionalità della barriera di sicurezza, ci occorre un contratto ERC-20. In questo articolo utilizzeremo [la procedura guidata dei contratti di OpenZeppelin](https://docs.openzeppelin.com/contracts/5.x/wizard). Aprila in un altro browser e segui queste istruzioni:
2828

2929
1. Seleziona **ERC20**.
3030
2. Inserisci queste impostazioni:

public/content/translations/pt-br/developers/tutorials/erc20-with-safety-rails/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Se você quiser ver o código-fonte completo:
2424

2525
## Criando um contrato ERC-20 {#creating-an-erc-20-contract}
2626

27-
Antes que nós possamos adicionar funcionalidade de trilhos de segurança, nós precisamos de um contrato ERC-20. Neste artigo, usaremos o [o Assistente de contratos da OpenZeppelin](https://docs.openzeppelin.com/contracts/4.x/wizard). Abra-o em outro navegador e siga estas instruções:
27+
Antes que nós possamos adicionar funcionalidade de trilhos de segurança, nós precisamos de um contrato ERC-20. Neste artigo, usaremos o [o Assistente de contratos da OpenZeppelin](https://docs.openzeppelin.com/contracts/5.x/wizard). Abra-o em outro navegador e siga estas instruções:
2828

2929
1. Selecione **ERC20**.
3030
2. Entre estas configurações:

public/content/translations/tr/developers/tutorials/erc20-with-safety-rails/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Bütün kaynak kodunu görmek isterseniz:
2424

2525
## ERC-20 sözleşmesi oluşturma {#creating-an-erc-20-contract}
2626

27-
Güvenlik önlemi işlevini eklemeden önce bize bir ERC-20 sözleşmesi lazım. Bu makalede [OpenZeppelin'in Sözleşme Sihirbazı'nı](https://docs.openzeppelin.com/contracts/4.x/wizard) kullanacağız. Başka bir sekmede açın ve şu yönergeleri izleyin:
27+
Güvenlik önlemi işlevini eklemeden önce bize bir ERC-20 sözleşmesi lazım. Bu makalede [OpenZeppelin'in Sözleşme Sihirbazı'nı](https://docs.openzeppelin.com/contracts/5.x/wizard) kullanacağız. Başka bir sekmede açın ve şu yönergeleri izleyin:
2828

2929
1. **ERC20**'yi seçin.
3030
2. Bu ayarları girin:

0 commit comments

Comments
 (0)