From 2802aa80196c6bd92e54e397aa76a97379566ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph-Andr=C3=A9=20Turk?= Date: Tue, 23 Jan 2024 14:34:37 +0100 Subject: [PATCH] updated node to v0.2.4 --- contracts/RandomInConstructorInitializable.sol | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/RandomInConstructorInitializable.sol b/contracts/RandomInConstructorInitializable.sol index f0e146f..4115c9a 100644 --- a/contracts/RandomInConstructorInitializable.sol +++ b/contracts/RandomInConstructorInitializable.sol @@ -13,7 +13,7 @@ contract RandomInConstructorInitializable is Initializable{ } function initialize() external initializer{ - random = TFHE.randEuint32(); + random = TFHE.rem(TFHE.randEuint32(),100); } // Returns the name of the token. diff --git a/package.json b/package.json index c59b884..68d0df9 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "task:mint": "hardhat task:mint", "task:deployERC20": "hardhat task:deployERC20", "task:accounts": "hardhat task:accounts", - "fhevm:start": "docker run -i -p 8545:8545 -p 8546:8546 --rm --name fhevm ghcr.io/zama-ai/ethermint-dev-node:v0.2.3", + "fhevm:start": "docker run -i -p 8545:8545 -p 8546:8546 --rm --name fhevm ghcr.io/zama-ai/ethermint-dev-node:v0.2.4", "fhevm:stop": "docker rm -f fhevm", "fhevm:restart": "fhevm:stop && fhevm:start", "fhevm:faucet": "npm run fhevm:faucet:alice && sleep 5 && npm run fhevm:faucet:bob && sleep 5 && npm run fhevm:faucet:carol && sleep 5 && npm run fhevm:faucet:dave",