Skip to content

Commit c75c0b3

Browse files
committed
docs(common): fix invalid snippet
1 parent 2afcdc2 commit c75c0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/solidity-guides/operations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ Choose the smallest encrypted type that can accommodate your data to optimize ga
9595

9696
```solidity
9797
// Bad: Using euint256 for small numbers wastes gas
98-
euint64 age = FHE.euint256(25); // age will never exceed 255
99-
euint64 percentage = FHE.euint256(75); // percentage is 0-100
98+
euint64 age = FHE.asEuint128(25); // age will never exceed 255
99+
euint64 percentage = FHE.asEuint128(75); // percentage is 0-100
100100
```
101101

102102
✅ Instead, use the smallest appropriate type:

0 commit comments

Comments
 (0)