airgap-it / beacon-android-sdk

The beacon sdk allows Android developers of dApps and wallets on Tezos to implement the wallet interaction standard tzip-10.
https://walletbeacon.io
MIT License
10 stars 8 forks source link

Serialization error when using BeaconMessage in demo #7

Closed baahkusi closed 2 years ago

baahkusi commented 2 years ago

I get this error java.lang.IllegalArgumentException: Unsupported value: '"tezos_permission_request"' of type 'class kotlinx.serialization.json.JsonLiteral' when I use the toJson method exposed in this demo file https://github.com/airgap-it/beacon-android-sdk/blob/develop/demo/src/main/java/it/airgap/beaconsdkdemo/utils/BeaconMessage.kt

baahkusi commented 2 years ago

I think I found the issue now, the fault of which was from my code. Thanks for your apt response.