Skip to content

feat: Adds tests that verify IHRC904 airdropToken targeted to an EOA are functional when called by a contract#1185

Merged
simzzz merged 8 commits intohashgraph:mainfrom
simzzz:1109-airdrop-contract-coverage
Feb 4, 2025
Merged

feat: Adds tests that verify IHRC904 airdropToken targeted to an EOA are functional when called by a contract#1185
simzzz merged 8 commits intohashgraph:mainfrom
simzzz:1109-airdrop-contract-coverage

Conversation

@simzzz
Copy link
Copy Markdown
Member

@simzzz simzzz commented Jan 17, 2025

Description:
This PR adds tests that verify IHRC904 airdropToken targeted to an EOA are functional when called by a contract, by using the already existing smart contract. This test coverage was in a previous PR and was already reviewed once. Here we separated it from the example contracts so it didn't block the PR and the requested changes, mainly by @quiet-node were addressed.

Related issue(s):

Closes #1109

Notes for reviewer:
One of the tests is currently skipped due to a bug uncovered in the services repo, while testing. The test will fail until the issue is fixed, and a new issue will be created here to remove the skip once the issue in services is resolved.
hiero-ledger/hiero-consensus-node#17409

Checklist

…evious PR

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Copy link
Copy Markdown
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Left some blocking suggestions tho.

Comment thread test/constants.js Outdated
Comment thread test/hip-583/HIP583.js Outdated
Comment thread test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js Outdated
Comment thread test/system-contracts/hedera-token-service/utils.js
@quiet-node quiet-node added the enhancement New feature or request label Jan 17, 2025
@quiet-node quiet-node added this to the 0.12.0 milestone Jan 17, 2025
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Copy link
Copy Markdown
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking because tests are failing, as HIP-904 will not be enabled until issue #1171 is resolved.

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@simzzz simzzz requested a review from quiet-node January 27, 2025 10:15
konstantinabl
konstantinabl previously approved these changes Jan 28, 2025
Copy link
Copy Markdown
Contributor

@konstantinabl konstantinabl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work

Copy link
Copy Markdown
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG but just 1 request

Comment thread test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js Outdated
@simzzz simzzz requested a review from quiet-node January 31, 2025 17:00
quiet-node
quiet-node previously approved these changes Feb 3, 2025
Copy link
Copy Markdown
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thans for the great work!

konstantinabl
konstantinabl previously approved these changes Feb 4, 2025
@simzzz simzzz force-pushed the 1109-airdrop-contract-coverage branch from 47a08ef to 9b3b14d Compare February 4, 2025 13:42
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@simzzz simzzz dismissed stale reviews from konstantinabl and quiet-node via 7e7f8b2 February 4, 2025 13:45
@simzzz simzzz force-pushed the 1109-airdrop-contract-coverage branch from 9b3b14d to 7e7f8b2 Compare February 4, 2025 13:45
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@simzzz simzzz force-pushed the 1109-airdrop-contract-coverage branch 2 times, most recently from 8d23673 to 3c752e9 Compare February 4, 2025 15:26
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
@simzzz simzzz force-pushed the 1109-airdrop-contract-coverage branch from 3c752e9 to 9948fee Compare February 4, 2025 15:27
@simzzz simzzz merged commit 6e09c81 into hashgraph:main Feb 4, 2025
@simzzz simzzz deleted the 1109-airdrop-contract-coverage branch February 4, 2025 15:45
mp-arianelabs pushed a commit to Ariane-Labs/hedera-smart-contracts that referenced this pull request Feb 10, 2025
…are functional when called by a contract (hashgraph#1185)

* feat: added test coverage of Airdrop.sol with requested fixes from previous PR

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* feat: requested changes for Airdrop tokens test coverage

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* feat: recompiled contract

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* skipped tests temporarily

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* requested changes from PR

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* fix conflicts

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

---------

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
mp-arianelabs pushed a commit to Ariane-Labs/hedera-smart-contracts that referenced this pull request Feb 10, 2025
…are functional when called by a contract (hashgraph#1185)

* feat: added test coverage of Airdrop.sol with requested fixes from previous PR

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* feat: requested changes for Airdrop tokens test coverage

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* feat: recompiled contract

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* skipped tests temporarily

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* requested changes from PR

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

* fix conflicts

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>

---------

Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests that verify IHRC904 airdropToken targeted to an EOA are functional when called by a contract

3 participants