Skip to content
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

feat(tokenCreateTransaction): Implement TokenCreateTransaction E2E tests: TCK #252

Merged

Conversation

rwalworth
Copy link
Contributor

@rwalworth rwalworth commented Oct 3, 2024

Description:
This PR implements the TokenCreateTransaction tests documented in test-specifications/token-service/tokenCreateTransaction.md. Currently three tests are skipped because of a bug in the services code which allows for tokens to be created with a custom fee that collects to a deleted account. Another test is skipped because deleteToken is not yet implemented.

Related issue(s):

Fixes #231 #244

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
Signed-off-by: Rob Walworth <[email protected]>
@rwalworth rwalworth added the enhancement New feature or request label Oct 3, 2024
@rwalworth rwalworth self-assigned this Oct 3, 2024
@rwalworth rwalworth linked an issue Oct 3, 2024 that may be closed by this pull request
@ivaylogarnev-limechain ivaylogarnev-limechain force-pushed the 00231-tck-implement-json-rpc-method-for-tokencreatetransaction branch from a42c641 to 0bc413e Compare October 4, 2024 06:29
…O, removed the TokenType enum and other minor things

Signed-off-by: ivaylogarnev-limechain <[email protected]>
@rwalworth
Copy link
Contributor Author

Almost all the asserts for ecdsa keys are not passing because the consensus client is DER encoding the key differently than the Java SDK, I guess we could rework the logic to assert the keys raw? @rwalworth @ivaylogarnev-limechain WDYT?

I am okay with switching to just comparing raw keys, though we should do this for all key comparisons in all tests. I created an issue to track this #257

…efix for KeyList

Signed-off-by: ivaylogarnev-limechain <[email protected]>
…d the returned from the test key

Signed-off-by: ivaylogarnev-limechain <[email protected]>
…plement-json-rpc-method-for-tokencreatetransaction

Signed-off-by: ivaylogarnev-limechain <[email protected]>
@ivaylogarnev-limechain ivaylogarnev-limechain force-pushed the 00231-tck-implement-json-rpc-method-for-tokencreatetransaction branch from d304ea6 to f1ed3fa Compare October 11, 2024 14:24
…tionality and commented out every uint64 test, also synced with 00257

Signed-off-by: ivaylogarnev-limechain <[email protected]>
Signed-off-by: ivaylogarnev-limechain <[email protected]>
@rwalworth
Copy link
Contributor Author

Key comparison and large integer value changes are now working with the C++ SDK!

…ommented out 2 problematic tests

Signed-off-by: ivaylogarnev-limechain <[email protected]>
… changes, commented code deleted, re-numbered all tests

Signed-off-by: ivaylogarnev-limechain <[email protected]>
…ncreatetransaction

Signed-off-by: ivaylogarnev-limechain <[email protected]>
@rwalworth rwalworth merged commit a276996 into main Oct 22, 2024
7 checks passed
@rwalworth rwalworth deleted the 00231-tck-implement-json-rpc-method-for-tokencreatetransaction branch October 22, 2024 14:33
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.

TCK: Implement tests for TokenCreateTransaction
5 participants