-
Notifications
You must be signed in to change notification settings - Fork 122
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: introduce new mechanism for key setting when creating an account #2188
feat: introduce new mechanism for key setting when creating an account #2188
Conversation
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
…cifications-for-AccountCreateTransaction
Signed-off-by: Naydenov <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2188 +/- ##
============================================
- Coverage 82.20% 78.74% -3.46%
- Complexity 3588 4101 +513
============================================
Files 186 243 +57
Lines 11697 13764 +2067
Branches 1150 1337 +187
============================================
+ Hits 9615 10838 +1223
- Misses 1604 2454 +850
+ Partials 478 472 -6 ☔ View full report in Codecov by Sentry. |
sdk/src/test/java/org/hiero/sdk/AccountCreateTransactionTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
…-for-AccountCreateTransaction
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
examples/src/main/java/org/hiero/sdk/examples/AccountCreateWithAndWithoutAliasExample.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/org/hiero/sdk/examples/AccountCreateWithAndWithoutAliasExample.java
Show resolved
Hide resolved
examples/src/main/java/org/hiero/sdk/examples/AccountCreateWithAndWithoutAliasExample.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
sdk/src/test/java/org/hiero/sdk/AccountCreateTransactionTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ivan Ivanov <[email protected]>
Signed-off-by: Ivan Ivanov <[email protected]>
Signed-off-by: Naydenov <[email protected]>
@DisplayName("Cannot create account with alias different from admin key without both key signature") | ||
void cannotCreateAccountWithAliasWithoutBothKeySignatures() throws Exception { |
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.
This test was reworked to test passing ed key
* Demonstrates different methods of creating Hedera accounts with various key configurations. | ||
* Shows how to create accounts with and without aliases using different key types. | ||
*/ | ||
public class AccountCreateWithAndWithoutAliasExample { |
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.
Maybe it's a good idea to rework the already existing example for alias. I forgot we had one.
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.
And to replace all instances where we call setKey
to the new setKeyWithoutAlias
Description:
introduce new mechanism for key setting when creating an account
Related issue(s):
Fixes #2177
Notes for reviewer:
Checklist