fix: update test doc and tree file

This commit is contained in:
moebius
2025-02-19 14:28:17 +01:00
parent 28f2f45c9c
commit 36f0887dc7
2 changed files with 5 additions and 3 deletions

View File

@@ -372,7 +372,7 @@ contract UnitDeposit is UnitPrivacyPool {
}
/**
* @notice Test for the deposit function when depositing zero value
* @notice Test for the deposit function when depositing a value greater than 2**128
*/
function test_DepositWhenDepositingReallyBigValue(
address _depositor,

View File

@@ -21,8 +21,10 @@ PrivacyPool::deposit
│ │ │ └── It emits Deposited event
│ │ ├── When depositing zero value
│ │ │ └── It processes deposit normally
│ │ ── When commitment exists in tree
│ │ └── It reverts with LeafAlreadyExists
│ │ ── When commitment exists in tree
│ │ └── It reverts with LeafAlreadyExists
│ │ └── When deposit value is greater than 2**128
│ │ └── It reverts with InvalidDepositValue
│ └── When pool is dead
│ └── It reverts with PoolIsDead
└── When caller is not entrypoint