Protocol 22 Support
christian-rogobete
released this
24 Oct 13:58
·
6 commits
to master
since this release
This release adds support for Protocol 22 and maintains backwards compatibility for Protocol 21.
See also: #163
To maintain compatibility for Protocol 21 until Protocol 22 is released you have to consider following braking changes if you are using this version of the SDK:
Horizon:
- The deprecated fields
amount
andnumAccounts
have been removed fromAssetResponse
Soroban:
- The legacy field
cost
has been removed fromSimulateTransactionResponse
- The
createdAt
field fromTransactionInfo
is now aString
. It wasint
before.
Other tips for migrating to Protocol 22:
- Soroban: The field
pagingToken
fromEventInfo
will not be filled any more starting with Protocol 22. Instead, the new fieldcursor
inGetEventsResponse
will be filled starting with Protocol 22. - Soroban: The new field
txHash
inGetTransactionResponse
andTransactionInfo
will be filled starting with Protocol 22. - Soroban: You can use the new
CreateContractWithConstructorHostFunction
class to create contracts that have a constructor.