Skip to content

Commit a9d6af5

Browse files
committed
docs(common): updates introduction README
1 parent 8885044 commit a9d6af5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/introductions/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,18 @@ like this:
4848
// SPDX-License-Identifier: BSD-3-Clause-Clear
4949
pragma solidity ^0.8.24;
5050
51-
import { FHE } from "@fhevm/solidity/lib/FHE.sol";
51+
import { FHE, euint64 } from "@fhevm/solidity/lib/FHE.sol";
5252
import { SepoliaConfig } from "@fhevm/solidity/config/ZamaConfig.sol";
5353
54-
contract MyCounter is SepoliaZamaFHEVMConfig {
54+
contract MyCounter is ZamaConfig {
5555
euint64 counter;
5656
constructor() {
5757
counter = FHE.asEuint64(0);
5858
}
5959
6060
function add() public {
6161
counter = FHE.add(counter, 1);
62+
FHE.allowThis(counter);
6263
}
6364
}
6465
```

0 commit comments

Comments
 (0)