-
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
Signers were made immutable causing a breaking change #456
Comments
Yes, that was mentioned in the 0.32.0 release as part of overall protocol 19 updates. Has the tx instance you're working with already had |
Hi @sreuland thanks for following up. My use case is this scenario:
To be clear, we're not trying to add signatures directly to the list. We just want the original transaction from the signed transaction. |
We actually also had a use case where we need to add or replace signatures in an envelope, and hit a similar scenario. The solution I found (which I am not much of a fan of), is to:
It's a bit annoying that we need do it this way, but it does work (though maybe not in your use case). |
@secondclaw that was really helpful, we're able to avoid the longer chunk of code we had built. I'm okay to use this workaround and I'm fine if this ticket is closed. Would still like to see if the SDK can add a |
What version are you using?
Java 0.29.0 upgrading to 0.37.2
What did you do?
transaction.getSignatures().clear();
What did you expect to see?
With older versions of the SDK, I could clear the signatures and perform my necessary logic.
AbstractTransaction.clearSignatures()
method added to the class?What did you see instead?
The signatures list is now immutable. Our engineer has to arcanely copy and modify code from the SDK in order to remove the signature; which is not the right solution.
This PR #410 made the signers list immutable.
The text was updated successfully, but these errors were encountered: