Skip to content

Commit c697f18

Browse files
authored
Merge pull request #3 from hypercerts-org/refactor/batchtransferTest
refactor batchTransferFractionTest
2 parents a889789 + 5926c0e commit c697f18

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

test/BatchTransferFraction.t.sol

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ contract BatchTransferFractionTest is Test {
1818
address public owner;
1919
address public alice = makeAddr("Alice");
2020
address public bob = makeAddr("Bob");
21-
uint256 public CLAIM_ID;
22-
uint256 public FRACTION_ID;
2321

2422
event BatchFractionTransfer(address indexed from, address[] indexed to, uint256[] indexed fractionId);
2523

@@ -44,8 +42,8 @@ contract BatchTransferFractionTest is Test {
4442

4543
function testRevertINVALID_LENGTHS() public {
4644
uint256[] memory tokenIds = new uint256[](2);
47-
tokenIds[0] = 314_761_189_401_868_078_703_621_511_874_385_595_596_802;
48-
tokenIds[1] = 314_761_189_401_868_078_703_621_511_874_385_595_596_803;
45+
tokenIds[0] = 320_205_707_272_603_094_119_035_505_593_293_886_980_098;
46+
tokenIds[1] = 320_205_707_272_603_094_119_035_505_593_293_886_980_099;
4947

5048
address[] memory recipients = new address[](3);
5149
recipients[0] = alice;
@@ -60,8 +58,8 @@ contract BatchTransferFractionTest is Test {
6058

6159
function testRevertINVALID_CALLER() public {
6260
uint256[] memory tokenIds = new uint256[](2);
63-
tokenIds[0] = 314_761_189_401_868_078_703_621_511_874_385_595_596_802;
64-
tokenIds[1] = 314_761_189_401_868_078_703_621_511_874_385_595_596_803;
61+
tokenIds[0] = 320_205_707_272_603_094_119_035_505_593_293_886_980_098;
62+
tokenIds[1] = 320_205_707_272_603_094_119_035_505_593_293_886_980_099;
6563

6664
address[] memory recipients = new address[](2);
6765
recipients[0] = alice;
@@ -77,8 +75,8 @@ contract BatchTransferFractionTest is Test {
7775

7876
function testBatchTransfer() public {
7977
uint256[] memory tokenIds = new uint256[](2);
80-
tokenIds[0] = 314_761_189_401_868_078_703_621_511_874_385_595_596_802;
81-
tokenIds[1] = 314_761_189_401_868_078_703_621_511_874_385_595_596_803;
78+
tokenIds[0] = 320_205_707_272_603_094_119_035_505_593_293_886_980_098;
79+
tokenIds[1] = 320_205_707_272_603_094_119_035_505_593_293_886_980_099;
8280

8381
address[] memory recipients = new address[](2);
8482
recipients[0] = alice;
@@ -119,8 +117,6 @@ contract BatchTransferFractionTest is Test {
119117

120118
if (block.chainid == 11_155_111) {
121119
// Sepolia
122-
CLAIM_ID = 296_385_941_588_137_401_676_599_283_073_070_112_178_176;
123-
FRACTION_ID = CLAIM_ID + 1;
124120
owner = 0xc3593524E2744E547f013E17E6b0776Bc27Fc614;
125121
} else {
126122
revert("Unsupported chain");

0 commit comments

Comments
 (0)