You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before #2515 pseudo transactions were not typed to be returned by tx or ledger commands. The type used by those was Transaction. In order to not be a breaking change a new type of PseudoTransaction was added and Transaction | PseudoTransaction was used everywhere Transaction was used but a PseudoTransaction always could have come back.
A cleaner implementation would be to create a new type of SubmittableTransaction which equals the current value of Transaction. Transaction would then be updated to equal SubmittableTransaction | PseudoTransaction. The SubmittableTransaction can be used with client.submit.
BREAKING CHANGE: `Transaction` type has been redefined to include all
transactions and `SubmittableTransaction` was created to define the old
value. The following functions which only handle transactions to be
submitted now use `SubmittableTransaction`:
* `Client.autofill`
* `Client.submit`
* `Client.submitAndWait`
* `Client.prepareTransaction`
* `getSignedTx`
* `isAccountDelete`
Closes#2519
BREAKING CHANGE: `Transaction` type has been redefined to include all
transactions and `SubmittableTransaction` was created to define the old
value. The following functions which only handle transactions to be
submitted now use `SubmittableTransaction`:
* `Client.autofill`
* `Client.submit`
* `Client.submitAndWait`
* `Client.prepareTransaction`
* `getSignedTx`
* `isAccountDelete`
Closes#2519
Before #2515 pseudo transactions were not typed to be returned by
tx
orledger
commands. The type used by those wasTransaction
. In order to not be a breaking change a new type ofPseudoTransaction
was added andTransaction | PseudoTransaction
was used everywhereTransaction
was used but aPseudoTransaction
always could have come back.A cleaner implementation would be to create a new type of
SubmittableTransaction
which equals the current value ofTransaction
.Transaction
would then be updated to equalSubmittableTransaction | PseudoTransaction
. TheSubmittableTransaction
can be used withclient.submit
.Related to #2515 (comment) and #2515 (review)
The text was updated successfully, but these errors were encountered: