-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update acceptance tests to use new signatures. Create new acceptance… #510
Conversation
…test to exercise old create token function signatures Signed-off-by: lukelee-sl <[email protected]>
Codecov ReportBase: 76.38% // Head: 76.38% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #510 +/- ##
=======================================
Coverage 76.38% 76.38%
=======================================
Files 12 12
Lines 923 923
Branches 144 144
=======================================
Hits 705 705
Misses 165 165
Partials 53 53 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
I think we can rearrange the dir structure and tests case setup
Signed-off-by: lukelee-sl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should reorganize to ensure tests are more contained and easy to follow but also not rely on sequential ordering
}); | ||
const txReceipt = await tx.wait(); | ||
const { tokenAddress } = txReceipt.events.filter(e => e.event === 'CreatedToken')[0].args; | ||
|
||
return tokenAddress; | ||
} | ||
|
||
it('should deploy baseHTSContract', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess what i meant was you could create the the token, instantiate the contract from the address and associate in one test for the 3 scenarios.
Basically
should createHTSToken
&should associate to a token
would mergeshould createNftHTSToken
&should associate to a nft
would mergeshould createHTSTokenWithCustomFees
&should associate to a token with custom fees
would merge
should finsh setting up contracts
shouldn't really be a thing.
The first parts can go into the tests where the Address is used and the wallet creations would be in the beforeAll
Just trying to make things contained but also ensure that it doesn't matter in what order tests are run
Signed-off-by: lukelee-sl <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
…#510) * update acceptance tests to use new signatures. Create new acceptance test to exercise old create token function signatures Signed-off-by: lukelee-sl <[email protected]> * increase fees for account Signed-off-by: lukelee-sl <[email protected]> * update description of HTS Precompile V1 test Signed-off-by: lukelee-sl <[email protected]> * adjust fees Signed-off-by: lukelee-sl <[email protected]> * increase fee for v1 acceptance tests Signed-off-by: lukelee-sl <[email protected]> * increase fee for v1 acceptance tests once more Signed-off-by: lukelee-sl <[email protected]> * address review comments Signed-off-by: lukelee-sl <[email protected]> * refactor tests Signed-off-by: lukelee-sl <[email protected]> Signed-off-by: lukelee-sl <[email protected]> Signed-off-by: Maksim Dimitrov <[email protected]>
…#510) * update acceptance tests to use new signatures. Create new acceptance test to exercise old create token function signatures Signed-off-by: lukelee-sl <[email protected]> * increase fees for account Signed-off-by: lukelee-sl <[email protected]> * update description of HTS Precompile V1 test Signed-off-by: lukelee-sl <[email protected]> * adjust fees Signed-off-by: lukelee-sl <[email protected]> * increase fee for v1 acceptance tests Signed-off-by: lukelee-sl <[email protected]> * increase fee for v1 acceptance tests once more Signed-off-by: lukelee-sl <[email protected]> * address review comments Signed-off-by: lukelee-sl <[email protected]> * refactor tests Signed-off-by: lukelee-sl <[email protected]> Signed-off-by: lukelee-sl <[email protected]>
… test to exercise old create token function signatures
Signed-off-by: lukelee-sl [email protected]
Description:
The following pull requests updated the type signatures for functions and structures to better match protobuf and documentation.
hashgraph/hedera-smart-contracts#59
hashgraph/hedera-services#3910
Modify the solidity files to reflect the changes in the smart contracts repo.
Ensure that the acceptance tests run as expected with the new type signatures.
Create a new acceptance test to ensure that the old signature also work as expected.
Related issue(s):
Fixes #509
Notes for reviewer:
Checklist