Skip to content

Commit 3e0c0ce

Browse files
committed
chore: fix tests
1 parent 20f8ead commit 3e0c0ce

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

tests/test_pot.cairo

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,25 +249,18 @@ fn test_user_eligibility() {
249249
let pot_dispatcher = IPotDispatcher { contract_address: pot_contract_address };
250250

251251
let merkle_root: felt252 =
252-
1018745228276730910704891102790994956051553894193058494775844408792094808986;
252+
415944806682468542317893663524164587180226905219159939966475712536121842448;
253253
let merkle_proof: Array<felt252> = array![
254-
1761604568630620421740888441665833845656791646872009472483668397314975751449,
255-
1159441081249918702317256603203685015326534686061889545802973339878349767760
254+
2703728896489335098836699947247689135263632301646280222217001614516487978490,
255+
3381855609922770965061329276586589566725045020499778094981472002911820906627
256256
];
257257

258258
let instance_id = create_instance(
259259
pot_contract_address, usdt_contract_address, 123, merkle_root, 70, 100, 6300, 300
260260
);
261261

262262
let is_eligible = pot_dispatcher
263-
.user_is_eligible(
264-
instance_id,
265-
2383128754053831016163744975954369849134384176671708002113475243500452325532
266-
.try_into()
267-
.unwrap(),
268-
0,
269-
merkle_proof.span()
270-
);
263+
.user_is_eligible(instance_id, ADDRESS2.try_into().unwrap(), 50, merkle_proof.span());
271264

272265
assert(is_eligible, 'user should be eligible');
273266
}

0 commit comments

Comments
 (0)