From acb658fbdab718e5018ee7fe11884e07b2c42532 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 12 May 2020 20:01:27 +0200 Subject: [PATCH] Make use of constants. (#7) --- deposit_contract.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deposit_contract.sol b/deposit_contract.sol index 003e9afdf..c68538974 100644 --- a/deposit_contract.sol +++ b/deposit_contract.sol @@ -31,7 +31,7 @@ contract DepositContract is IDepositContract { uint constant MIN_DEPOSIT_AMOUNT = 1000000000; // Gwei uint constant DEPOSIT_CONTRACT_TREE_DEPTH = 32; - uint constant MAX_DEPOSIT_COUNT = 4294967295; // 2**DEPOSIT_CONTRACT_TREE_DEPTH - 1 + uint constant MAX_DEPOSIT_COUNT = 2**DEPOSIT_CONTRACT_TREE_DEPTH - 1; uint constant PUBKEY_LENGTH = 48; // bytes uint constant WITHDRAWAL_CREDENTIALS_LENGTH = 32; // bytes uint constant SIGNATURE_LENGTH = 96; // bytes