Skip to content

Commit

Permalink
OnPayloadSigned expects full json response instead of just the signat…
Browse files Browse the repository at this point in the history
…ure. (#22)
  • Loading branch information
mathias-hiron authored Mar 21, 2023
1 parent 9d74410 commit 863c8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Plugins/Android/Source/dapp/DAppViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class DAppViewModel
when(response)
{
is OperationTezosResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnContractCallCompleted", response.toJson().toString())
is SignPayloadTezosResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnPayloadSigned", response.signature.toString())
is SignPayloadTezosResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnPayloadSigned", response.toJson().toString())
is BroadcastTezosResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnBroadcastResponse", response.toString())
is PermissionBeaconResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnAccountConnected", response.toJson().toString())
//is BlockchainBeaconResponse -> UnityPlayer.UnitySendMessage("UnityBeacon", "OnHandshakeReceived", response.destination.id)
Expand All @@ -263,4 +263,4 @@ class DAppViewModel
private fun onError(error: Throwable) {
UnityPlayer.UnitySendMessage("UnityBeacon", "OnErrorResponse", error.toString())
}
}
}

0 comments on commit 863c8b7

Please sign in to comment.