Skip to content

Commit

Permalink
test: claim multiple tokens send to 1 receiver
Browse files Browse the repository at this point in the history
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
  • Loading branch information
ibankov committed Aug 20, 2024
1 parent d933d7e commit a3ef15d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,22 @@ final Stream<DynamicTest> claimTokenAirdropSenderAccountPays() {
getAccountBalance(RECEIVER).hasTokenBalance(FUNGIBLE_TOKEN, 1)));
}

@HapiTest
@DisplayName("multiple FT airdrops to same receiver")
final Stream<DynamicTest> multipleFtAirdropsSameReceiver() {
final String BOB = "BOB";
return hapiTest(flattened(
setUpTokensAndAllReceivers(),
cryptoCreate(BOB).balance(ONE_HUNDRED_HBARS).maxAutomaticTokenAssociations(0),
tokenAirdrop(moving(10, FUNGIBLE_TOKEN).between(OWNER, BOB)).payingWith(OWNER),
tokenAirdrop(moving(10, FUNGIBLE_TOKEN).between(OWNER, BOB)).payingWith(OWNER),
tokenAirdrop(moving(10, FUNGIBLE_TOKEN).between(OWNER, BOB)).payingWith(OWNER),
tokenClaimAirdrop(pendingAirdrop(OWNER, BOB, FUNGIBLE_TOKEN))
.signedBy(BOB)
.payingWith(BOB),
getAccountBalance(BOB).hasTokenBalance(FUNGIBLE_TOKEN, 30)));
}

@HapiTest
@DisplayName("multiple pending transfers in one airdrop same token different receivers")
final Stream<DynamicTest> multiplePendingInOneAirdropDifferentReceivers() {
Expand Down

0 comments on commit a3ef15d

Please sign in to comment.