Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conflicting kit.listeners #600

Open
TBCode523 opened this issue Jan 16, 2023 · 0 comments
Open

Conflicting kit.listeners #600

TBCode523 opened this issue Jan 16, 2023 · 0 comments

Comments

@TBCode523
Copy link
Contributor

TBCode523 commented Jan 16, 2023

I'm trying to implement multiple crypto-currencies in my app. When I attempt to implement both Bitcoin Core & DashKit listener interfaces and their onTransactionUpdate functions
class MainViewModel:ViewModel(), BitcoinKit.Listener, DashKit.Listener

override fun onTransactionsUpdate( inserted: List<TransactionInfo>, updated: List<TransactionInfo> ) { super.onTransactionsUpdate(inserted, updated) }

override fun onTransactionsUpdate( inserted: List<DashTransactionInfo>, updated: List<DashTransactionInfo> ) { TODO("Not yet implemented") }

I get a compiler error:
Platform declaration clash: The following declarations have the same JVM signature (onTransactionsUpdate(Ljava/util/List;Ljava/util/List;)V):

When I tried to annotate one of the functions I get another error saying:
'@JvmName' annotation is not applicable to this declaration.

What's the solution/workaround?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant