diff --git a/airgapped/airgapped.go b/airgapped/airgapped.go index 2f8ee9d..cb17fb5 100644 --- a/airgapped/airgapped.go +++ b/airgapped/airgapped.go @@ -260,8 +260,7 @@ func (am *Machine) HandleQR() (string, error) { return "", fmt.Errorf("failed to marshal operation: %w", err) } - qrPath := filepath.Join(am.resultQRFolder, fmt.Sprintf("%s_%s_%s.gif", resultOperation.Type, resultOperation.ID, - resultOperation.To)) + qrPath := filepath.Join(am.resultQRFolder, fmt.Sprintf("dc4bc_qr_%s-response.gif", resultOperation.ID)) if err = am.qrProcessor.WriteQR(qrPath, operationBz); err != nil { return "", fmt.Errorf("failed to write QR: %w", err) } diff --git a/cmd/dc4bc_cli/main.go b/cmd/dc4bc_cli/main.go index 0508b83..861f243 100644 --- a/cmd/dc4bc_cli/main.go +++ b/cmd/dc4bc_cli/main.go @@ -270,7 +270,7 @@ func getOperationQRPathCommand() *cobra.Command { return fmt.Errorf("failed to get operations: %s", operation.ErrorMessage) } - operationQRPath := filepath.Join(qrCodeFolder, fmt.Sprintf("dc4bc_qr_%s", operationID)) + operationQRPath := filepath.Join(qrCodeFolder, fmt.Sprintf("dc4bc_qr_%s-request", operationID)) qrPath := fmt.Sprintf("%s.gif", operationQRPath)