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
Describe the bug
In the past one could use the value of type AccountResponse returned by loadAccount of class Server directly as an argument for new TransactionBuilder. This standard use case does not work anymore as the TransactionBuilder constructor expects an Account, which has a member createSubaccount on the latest version of stellar-base. This member does not exist on AccountResponse, though.
Describe the bug
In the past one could use the value of type
AccountResponse
returned byloadAccount
of classServer
directly as an argument fornew TransactionBuilder
. This standard use case does not work anymore as theTransactionBuilder
constructor expects anAccount
, which has a membercreateSubaccount
on the latest version of stellar-base. This member does not exist onAccountResponse
, though.The reference code does not typecheck anymore.
What version are you on?
8.2.0
To Reproduce
Compile this typescript code:
This will generate the following error
Expected behavior
No error occurs and
AccountResponse
is assignable to parameter of typeAccount
.Additional context
Works correctly with version 8.0.0
The text was updated successfully, but these errors were encountered: