-
Notifications
You must be signed in to change notification settings - Fork 159
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
Implement FeeBumpTransaction builder, update SEP10 and SEP29 #278
Conversation
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.
LGTM! Are planning to update TransactionResponse
in another PR or another SDK release?
} catch (IOException exception) { | ||
return null; | ||
} |
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 code was copied but we probably shouldn't silence errors like this.
|
||
long innerBaseFee = this.mInner.getFee(); | ||
long numOperations = this.mInner.getOperations().length; | ||
if (numOperations > 0 ) { |
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.
if (numOperations > 0 ) { | |
if (numOperations > 0) { |
public FeeBumpTransaction build() { | ||
if (mBaseFee == null) { | ||
throw new RuntimeException("base fee has to be set. you must call setBaseFee()."); | ||
} |
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.
Nit: can be a one-liner using checkNotNull
.
* account which requires a memo. | ||
* @throws IOException | ||
*/ | ||
public SubmitTransactionResponse submitTransaction(FeeBumpTransaction transaction, boolean skipMemoRequiredCheck) throws IOException, AccountRequiresMemoException { |
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.
Why not merge this and above into one:
public SubmitTransactionResponse submitTransaction(AbstractTransaction transaction, boolean skipMemoRequiredCheck) throws IOException, AccountRequiresMemoException
👍 either way.
🤦 I was looking at |
This PR should address all remaining protocol 13 issues in the Java SDK
close #277