File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
wallet-core/src/main/java/eu/europa/ec/eudi/wallet Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -691,7 +691,12 @@ object EudiWallet : KeyGenerator by KeyGeneratorImpl {
691
691
is ResponseResult .Success -> {
692
692
when (transferMode) {
693
693
TransferMode .OPENID4VP ->
694
- openId4vpManager?.sendResponse((responseResult.response as OpenId4VpCBORResponse ).deviceResponseBytes)
694
+ openId4vpManager?.sendResponse(
695
+ when (val result = responseResult.response){
696
+ is OpenId4VpCBORResponse -> result.deviceResponseBytes
697
+ is DeviceResponse -> result.deviceResponseBytes
698
+ else -> throw Exception ()
699
+ })
695
700
696
701
TransferMode .ISO_18013_5 , TransferMode .REST_API ->
697
702
transferManager.sendResponse((responseResult.response as DeviceResponse ).deviceResponseBytes)
You can’t perform that action at this time.
0 commit comments