corda / cordapp-template-kotlin

A Kotlin CorDapp Template. Extend it via the Hello, World tutorial: https://docs.corda.net/hello-world-introduction.html
118 stars 149 forks source link

ES-1992: Replace deprecated methods with recommended usage #98

Closed anton-subbotin closed 7 months ago

anton-subbotin commented 7 months ago

CorDapps code includes Corda API methods which were marked as terminally deprecated since 5.0 GA. When building CPIs, it results in Deprecated warnings in the IDE console. This change fixes the warnings by using the recommended methods. Flows were manually tested following the "Running the Chat CorDapp" from Corda 5 documentation.

anton-subbotin commented 7 months ago

Not replacing https://github.com/corda/cordapp-template-kotlin/blob/release-V5.2/contracts/src/test/kotlin/com/r3/developers/cordapptemplate/utxoexample/contracts/ChatContractCreateCommandTest.kt#L175 because contract-testing library has not been updated since cordaApiVersion=5.0.0.765: https://github.com/corda/corda5-contract-testing/blob/main/gradle.properties#L9