Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/devdocs/Tutorials/Basic/Writing-The-Contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ contract WrappingERC20 is ERC20 {
// Make sure the sender has enough tokens.
FHE.req(amount.lte(_encBalances[msg.sender]));

// Add to the balance of `to` and subract from the balance of `from`.
// Add to the balance of `to` and subtract from the balance of `from`.
_encBalances[to] = _encBalances[to] + amount;
_encBalances[msg.sender] = _encBalances[msg.sender] - amount;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/devdocs/Writing Smart Contracts/Security-Zones.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let second = await client.encrypt_uint32(1332, 0); // This implicitly uses Secur
await contract.addSecZone0(first, second);

first = await client.encrypt_uint32(5, 1); // To use a non-default SZ, you have to be explicit
econd = await client.encrypt_uint32(1332, 1);
second = await client.encrypt_uint32(1332, 1);
await contract.addSecZone1(first, second);
```

Expand All @@ -72,4 +72,4 @@ In **fhenix.js**, you can specify a Security Zone only in the `encrypt()` functi

:::info[Note]
The current security zones are implemented to demonstrate the concept with tradeoffs between security and performance. However, they are not indicative of a production deployment.
:::
:::