-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from zama-ai/remove-warning-openzeppelin
docs() Remove deperecated warning concerning openzeppelin on Remix
- Loading branch information
Showing
1 changed file
with
0 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,10 @@ You can use it on [https://remix.zama.ai](https://remix.zama.ai). | |
|
||
## Usage | ||
|
||
First, read the [usage section](../write_contract.md#usage) regarding Solidity version and EVM. | ||
|
||
To import TFHE library, simply import it at the top of your contract. | ||
|
||
`import "fhevm/lib/TFHE.sol";` | ||
|
||
**UPDATE**: Remix doesn't take into consideration the package.json of fhevm to fetch dependencies. If you're using `fhevm/abstracts/EIP712WithModifier.sol`, it will fetch the latest version of the `@openzeppelin/contracts` package, which runs only on the Shanghai EVM (Solidity version ^0.8.20). Since fhEVM is not compatible with versions above 0.8.19, it will fail. To fix that, go to `.deps/fhevm/abstracts/EIP712WithModifier.sol` and change the imports as follows: | ||
|
||
```solidity | ||
import "@openzeppelin/[email protected]/utils/cryptography/ECDSA.sol"; | ||
import "@openzeppelin/[email protected]/utils/cryptography/EIP712.sol"; | ||
``` | ||
|
||
Be sure to be on the correct network before deploying your contract | ||
|
||
<figure><img src="../../.gitbook/assets/metamask_select_network.png" alt="" width="300"><figcaption> | ||
|