Skip to content

Commit

Permalink
Add missing vm.assume(alice != bob) to OffchainAssetReceiptVault.rede…
Browse files Browse the repository at this point in the history
…posit.t.sol
  • Loading branch information
ninokeldishvili committed Oct 15, 2024
1 parent 4747fa6 commit 00e2424
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/concrete/vault/OffchainAssetReceiptVault.redeposit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ contract RedepositTest is OffchainAssetReceiptVaultTest {
// Ensure the fuzzed key is within the valid range for secp256k1
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
address bob = vm.addr((fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1);
vm.assume(alice != bob);

minShareRatio = bound(minShareRatio, 0, 1e18);
timestamp = bound(timestamp, 1, type(uint32).max);

Expand Down Expand Up @@ -101,6 +103,8 @@ contract RedepositTest is OffchainAssetReceiptVaultTest {
// Ensure the fuzzed key is within the valid range for secp256k1
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
address bob = vm.addr((fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1);
vm.assume(alice != bob);

minShareRatio = bound(minShareRatio, 0, 1e18);
timestamp = bound(timestamp, 1, type(uint32).max);

Expand Down Expand Up @@ -249,6 +253,8 @@ contract RedepositTest is OffchainAssetReceiptVaultTest {
// Ensure the fuzzed key is within the valid range for secp256k1
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
address bob = vm.addr((fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1);
vm.assume(alice != bob);

minShareRatio = bound(minShareRatio, 0, 1e18);
timestamp = bound(timestamp, 1, type(uint32).max);

Expand Down Expand Up @@ -351,6 +357,8 @@ contract RedepositTest is OffchainAssetReceiptVaultTest {
// Ensure the fuzzed key is within the valid range for secp256k1
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
address bob = vm.addr((fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1);
vm.assume(alice != bob);

minShareRatio = bound(minShareRatio, 0, 1e18);
timestamp = bound(timestamp, 1, type(uint32).max);

Expand Down Expand Up @@ -402,6 +410,8 @@ contract RedepositTest is OffchainAssetReceiptVaultTest {
// Ensure the fuzzed key is within the valid range for secp256k1
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
address bob = vm.addr((fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1);
vm.assume(alice != bob);

minShareRatio = bound(minShareRatio, 0, 1e18);
timestamp = bound(timestamp, 1, type(uint32).max);
blockNumber = bound(blockNumber, 0, type(uint256).max);
Expand Down

0 comments on commit 00e2424

Please sign in to comment.