From cf4e003833c82fea4da0c5e32e31aceae198c5be Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 17:27:50 +0530 Subject: [PATCH 1/6] refactor: remove `return` statement which is not inside a function (#7) * ci: update .deepsource.toml * ci: update .deepsource.toml * refactor: make JUnit5 test classes and methods package-private JUnit5 test classes and methods should be package-private. * refactor: fix unused method receiver Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. * refactor: fix unused method receiver (#5) Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * refactor: remove `return` statement which is not inside a function A `return` statement should not be used outside of a function or method. This will raise a `SyntaxError`. Make sure that your code and indentation are correct. --------- Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: perumandla sai veerender --- .deepsource.toml | 137 +++--------------- .../pi_wallet/offline_transaction_signer.py | 1 - .../tests/AccountServiceTest.java | 6 +- .../tests/TransactionServiceTest.java | 6 +- .../tests/UserServiceTest.java | 6 +- web4/nexarion/nc/nexarion_core.go | 2 +- 6 files changed, 30 insertions(+), 128 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 3be332978..97dc37b96 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,26 +1,5 @@ version = 1 -[[analyzers]] -name = "test-coverage" - -[[analyzers]] -name = "terraform" - -[[analyzers]] -name = "swift" - -[[analyzers]] -name = "sql" - -[[analyzers]] -name = "shell" - -[[analyzers]] -name = "secrets" - -[[analyzers]] -name = "scala" - [[analyzers]] name = "rust" @@ -30,48 +9,20 @@ name = "rust" [[analyzers]] name = "ruby" -[[analyzers]] -name = "python" - - [analyzers.meta] - runtime_version = "3.x.x" - [[analyzers]] name = "php" - [analyzers.meta] - bootstrap_files = ["bootsrap"] - [[analyzers]] -name = "kotlin" +name = "python" [analyzers.meta] - runtime_version = "19" - language_version = "1.9" + runtime_version = "3.x.x" [[analyzers]] -name = "javascript" +name = "go" [analyzers.meta] - plugins = [ - "react", - "ember", - "angularjs", - "vue", - "meteor", - "angular" - ] - environment = [ - "nodejs", - "browser", - "jest", - "mocha", - "jasmine", - "jquery", - "mongo", - "cypress", - "vitest" - ] + import_root = "github.com/SAIVEERENDER24/pi-nexus-autonomous-banking-network" [[analyzers]] name = "java" @@ -80,79 +31,31 @@ name = "java" runtime_version = "21" [[analyzers]] -name = "go" +name = "csharp" - [analyzers.meta] - import_root = "github.com/KOSASIH/pi-nexus-autonomous-banking-network" +[[analyzers]] +name = "scala" [[analyzers]] -name = "docker" +name = "javascript" [analyzers.meta] - dockerfile_paths = ["Dockerfile"] + plugins = [ + "react", + "vue", + "ember" + ] + environment = ["nodejs"] [[analyzers]] -name = "cxx" +name = "shell" [[analyzers]] -name = "csharp" +name = "swift" [[analyzers]] -name = "ansible" - -[[transformers]] -name = "dotnet-format" - -[[transformers]] -name = "clang-format" - -[[transformers]] -name = "gofmt" - -[[transformers]] -name = "gofumpt" - -[[transformers]] -name = "google-java-format" - -[[transformers]] -name = "standardjs" - -[[transformers]] -name = "prettier" - -[[transformers]] -name = "ktlint" - -[[transformers]] -name = "php-cs-fixer" - -[[transformers]] -name = "yapf" - -[[transformers]] -name = "ruff" - -[[transformers]] -name = "black" - -[[transformers]] -name = "autopep8" - -[[transformers]] -name = "isort" - -[[transformers]] -name = "standardrb" - -[[transformers]] -name = "rubocop" - -[[transformers]] -name = "scalafmt" - -[[transformers]] -name = "rustfmt" +name = "kotlin" -[[transformers]] -name = "swift-format" \ No newline at end of file + [analyzers.meta] + runtime_version = "1.8" + language_version = "1.7" \ No newline at end of file diff --git a/blockchain_integration/pi_network/wallet/pi_wallet/offline_transaction_signer.py b/blockchain_integration/pi_network/wallet/pi_wallet/offline_transaction_signer.py index 7ceb98894..57d5d7223 100644 --- a/blockchain_integration/pi_network/wallet/pi_wallet/offline_transaction_signer.py +++ b/blockchain_integration/pi_network/wallet/pi_wallet/offline_transaction_signer.py @@ -31,4 +31,3 @@ def generate_private_key(): def derive_hd_key(private_key): # Derive an HD key from the private key hd_key = HDKey(private_key) -return hd_key diff --git a/core/account-service/tests/AccountServiceTest.java b/core/account-service/tests/AccountServiceTest.java index f9dce1df8..f0ac0b839 100644 --- a/core/account-service/tests/AccountServiceTest.java +++ b/core/account-service/tests/AccountServiceTest.java @@ -13,7 +13,7 @@ @SpringBootTest @Testcontainers @ExtendWith(MockitoExtension.class) -public class AccountServiceTest { +class AccountServiceTest { @Container private static final PostgreSQLContainer postgreSQLContainer = new PostgreSQLContainer("postgres:11.1"); @@ -29,7 +29,7 @@ public void setup() { } @Test - public void testGetAccount() { + void testGetAccount() { // Given Long accountId = 1L; Account account = new Account(accountId, "John Doe", "john.doe@example.com"); @@ -43,7 +43,7 @@ public void testGetAccount() { } @Test - public void testCreateAccount() { + void testCreateAccount() { // Given Account account = new Account("John Doe", "john.doe@example.com"); diff --git a/core/account-service/tests/TransactionServiceTest.java b/core/account-service/tests/TransactionServiceTest.java index eec2919b6..c51950dce 100644 --- a/core/account-service/tests/TransactionServiceTest.java +++ b/core/account-service/tests/TransactionServiceTest.java @@ -13,7 +13,7 @@ @SpringBootTest @Testcontainers @ExtendWith(MockitoExtension.class) -public class TransactionServiceTest { +class TransactionServiceTest { @Container private static final KafkaContainer kafkaContainer = new KafkaContainer("confluentinc/cp-kafka:5.5.1"); @@ -29,7 +29,7 @@ public void setup() { } @Test - public void testCreateTransaction() { + void testCreateTransaction() { // Given Transaction transaction = new Transaction("John Doe", 100.0); @@ -41,7 +41,7 @@ public void testCreateTransaction() { } @Test - public void testUpdateTransaction() { + void testUpdateTransaction() { // Given Transaction transaction = new Transaction("John Doe", 100.0); diff --git a/core/account-service/tests/UserServiceTest.java b/core/account-service/tests/UserServiceTest.java index 16bae284c..b8e773983 100644 --- a/core/account-service/tests/UserServiceTest.java +++ b/core/account-service/tests/UserServiceTest.java @@ -13,7 +13,7 @@ @SpringBootTest @Testcontainers @ExtendWith(MockitoExtension.class) -public class UserServiceTest { +class UserServiceTest { @Container private static final Neo4jContainer neo4jContainer = new Neo4jContainer("neo4j:4.2.1"); @@ -29,7 +29,7 @@ public void setup() { } @Test - public void testFindByUsername() { + void testFindByUsername() { // Given String username = "john.doe"; User user = new User(username, "John Doe", "john.doe@example.com"); @@ -43,7 +43,7 @@ public void testFindByUsername() { } @Test - public void testFindByEmail() { + void testFindByEmail() { // Given String email = "john.doe@example.com"; User user = new User("john.doe", "John Doe", email); diff --git a/web4/nexarion/nc/nexarion_core.go b/web4/nexarion/nc/nexarion_core.go index da332db6f..17a1b6fc7 100644 --- a/web4/nexarion/nc/nexarion_core.go +++ b/web4/nexarion/nc/nexarion_core.go @@ -10,6 +10,6 @@ func NewNexarionCore() *NexarionCore { return &NexarionCore{} } -func (c *NexarionCore) Start() { +func (*NexarionCore) Start() { // Implement the Nexarion Core's decision-making processes and functionality } From 4feba971cc59b78e25f1e8bdfc1c71ea41744ceb Mon Sep 17 00:00:00 2001 From: perumandla sai veerender Date: Thu, 28 Nov 2024 17:59:13 +0530 Subject: [PATCH 2/6] Update Portfolio.js --- .../pi_network/apps/PiGenesis/app/containers/Portfolio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain_integration/pi_network/apps/PiGenesis/app/containers/Portfolio.js b/blockchain_integration/pi_network/apps/PiGenesis/app/containers/Portfolio.js index 7b4c5f7d1..d3f59fcda 100644 --- a/blockchain_integration/pi_network/apps/PiGenesis/app/containers/Portfolio.js +++ b/blockchain_integration/pi_network/apps/PiGenesis/app/containers/Portfolio.js @@ -73,7 +73,7 @@ const Portfolio = () => { ))} - + ); }; From 8004a76e2c59058344b1e71369c670a03f555f3e Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:16:59 +0530 Subject: [PATCH 3/6] refactor: remove unused imports (#17) * refactor: remove unused imports An object has been imported but is not used anywhere in the file. It should either be used or the import should be removed. * refactor: autofix issues in 1 file Resolved issues in src/wallet/wallet.py with DeepSource Autofix --------- Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- .../pi_network/components/fraud_detection/fraud_detection.py | 1 - src/blockchain/blockchain.py | 1 - src/payment/payment_gateway.py | 1 - src/security/quantum_crypto.py | 1 - src/security/secure_mpc.py | 1 - src/wallet/hd_wallet.py | 2 -- src/wallet/wallet.py | 4 ---- 7 files changed, 11 deletions(-) diff --git a/blockchain_development_integration/pi_network/components/fraud_detection/fraud_detection.py b/blockchain_development_integration/pi_network/components/fraud_detection/fraud_detection.py index a2748e218..e55237047 100644 --- a/blockchain_development_integration/pi_network/components/fraud_detection/fraud_detection.py +++ b/blockchain_development_integration/pi_network/components/fraud_detection/fraud_detection.py @@ -1,5 +1,4 @@ # fraud_detection.py -import pandas as pd from sklearn.ensemble import IsolationForest def detect_fraud(transactions): diff --git a/src/blockchain/blockchain.py b/src/blockchain/blockchain.py index ef48263a2..64b9b31b8 100644 --- a/src/blockchain/blockchain.py +++ b/src/blockchain/blockchain.py @@ -2,7 +2,6 @@ import json from time import time from urllib.parse import urlparse -from uuid import uuid4 class Blockchain: def __init__(self): diff --git a/src/payment/payment_gateway.py b/src/payment/payment_gateway.py index 0691e61bb..7ef31aea8 100644 --- a/src/payment/payment_gateway.py +++ b/src/payment/payment_gateway.py @@ -1,6 +1,5 @@ import uuid import time -from cryptography.fernet import Fernet from notification import Notification class PaymentGateway: diff --git a/src/security/quantum_crypto.py b/src/security/quantum_crypto.py index 908b7fcf3..931912906 100644 --- a/src/security/quantum_crypto.py +++ b/src/security/quantum_crypto.py @@ -1,4 +1,3 @@ -import numpy as np from qiskit import QuantumCircuit, execute, Aer class QuantumCrypto: diff --git a/src/security/secure_mpc.py b/src/security/secure_mpc.py index 0720d4784..99a9d16ea 100644 --- a/src/security/secure_mpc.py +++ b/src/security/secure_mpc.py @@ -1,4 +1,3 @@ -import numpy as np from cryptography.fernet import Fernet class SecureMPC: diff --git a/src/wallet/hd_wallet.py b/src/wallet/hd_wallet.py index 88f25c563..2c6ea4239 100644 --- a/src/wallet/hd_wallet.py +++ b/src/wallet/hd_wallet.py @@ -1,7 +1,5 @@ import secrets import hashlib -import base64 -import os class HDWallet: def __init__(self, seed): diff --git a/src/wallet/wallet.py b/src/wallet/wallet.py index 486e1dbc7..00ecf7464 100644 --- a/src/wallet/wallet.py +++ b/src/wallet/wallet.py @@ -1,11 +1,7 @@ -import os -import json import hashlib import secrets from collections import defaultdict from cryptography.fernet import Fernet -import base64 -import binascii class HDWallet: def __init__(self, seed): From 106c8ea72f71e8324df995929f437e614bc1eb4c Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:38:25 +0530 Subject: [PATCH 4/6] refactor: change methods not using its bound instance to staticmethods (#24) The method doesn't use its bound instance. Decorate this method with `@staticmethod` decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods [here](https://docs.python.org/3/library/functions.html#staticmethod). Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- src/ai/nlp.py | 3 ++- src/ai/risk_assessment.py | 6 ++++-- src/blockchain/cross_chain.py | 6 ++++-- src/payment/fraud_detection.py | 3 ++- src/payment/notification.py | 3 ++- src/security/multi_sig.py | 3 ++- src/security/privacy.py | 6 ++++-- src/wallet/hd_wallet.py | 3 ++- src/wallet/wallet.py | 3 ++- 9 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/ai/nlp.py b/src/ai/nlp.py index 25251d9d6..c965f4b0f 100644 --- a/src/ai/nlp.py +++ b/src/ai/nlp.py @@ -11,7 +11,8 @@ def __init__(self, model_path='nlp_model.pkl'): self.vectorizer = TfidfVectorizer() self.model = None - def load_data(self, file_path): + @staticmethod + def load_data(file_path): """Load textual data from a CSV file.""" data = pd.read_csv(file_path) return data diff --git a/src/ai/risk_assessment.py b/src/ai/risk_assessment.py index 68f1379cd..02744439d 100644 --- a/src/ai/risk_assessment.py +++ b/src/ai/risk_assessment.py @@ -9,12 +9,14 @@ def __init__(self, model_path='risk_model.pkl'): self.model_path = model_path self.model = None - def load_data(self, file_path): + @staticmethod + def load_data(file_path): """Load data from a CSV file.""" data = pd.read_csv(file_path) return data - def preprocess_data(self, data): + @staticmethod + def preprocess_data(data): """Preprocess the data for training.""" # Example preprocessing steps data.fillna(0, inplace=True) # Fill missing values diff --git a/src/blockchain/cross_chain.py b/src/blockchain/cross_chain.py index 73846321b..c45ea5739 100644 --- a/src/blockchain/cross_chain.py +++ b/src/blockchain/cross_chain.py @@ -4,7 +4,8 @@ class CrossChain: def __init__(self, blockchain): self.blockchain = blockchain - def send_transaction(self, recipient, amount): + @staticmethod + def send_transaction(recipient, amount): # Send a transaction to another blockchain transaction_data = { 'sender': str(uuid4()), # Simulate sender address @@ -14,7 +15,8 @@ def send_transaction(self, recipient, amount): response = requests.post('http://other-blockchain-url/transactions/new', json=transaction_data) return response.json() - def fetch_chain(self, node): + @staticmethod + def fetch_chain(node): response = requests.get(f'http://{node}/chain') if response.status_code == 200: return response.json() diff --git a/src/payment/fraud_detection.py b/src/payment/fraud_detection.py index afbb9f251..5e0553954 100644 --- a/src/payment/fraud_detection.py +++ b/src/payment/fraud_detection.py @@ -5,7 +5,8 @@ def __init__(self): def log_transaction(self, payment): self.transaction_history.append(payment) - def detect_fraud(self, payment): + @staticmethod + def detect_fraud(payment): # Simple fraud detection logic based on transaction patterns if payment.amount > 10000: # Example threshold print(f"Fraud alert! High transaction amount detected: {payment.amount} from {payment.payer}.") diff --git a/src/payment/notification.py b/src/payment/notification.py index 1f04318b0..1f7554369 100644 --- a/src/payment/notification.py +++ b/src/payment/notification.py @@ -1,4 +1,5 @@ class Notification: - def send_notification(self,recipient, message): + @staticmethod + def send_notification(recipient, message): # Here you can implement the logic to send notifications via email, SMS, or any other method print(f"Notification sent to {recipient}: {message}") diff --git a/src/security/multi_sig.py b/src/security/multi_sig.py index c3933fc3e..9422eebd8 100644 --- a/src/security/multi_sig.py +++ b/src/security/multi_sig.py @@ -20,7 +20,8 @@ def verify(self, message, signature, signer_index): except ecdsa.BadSignatureError: return False - def combine_signatures(self, signatures): + @staticmethod + def combine_signatures(signatures): combined_signature = b'' for signature in signatures: combined_signature += signature diff --git a/src/security/privacy.py b/src/security/privacy.py index eb8f1768b..713b3cf94 100644 --- a/src/security/privacy.py +++ b/src/security/privacy.py @@ -11,14 +11,16 @@ def privatize_data(self, data): noisy_data = data + np.random.laplace(0, self.epsilon, size=data.shape) return noisy_data - def train_model(self, X, y): + @staticmethod + def train_model(X, y): scaler = StandardScaler() X_scaled = scaler.fit_transform(X) svm = SVC() svm.fit(X_scaled, y) return svm - def evaluate_model(self, model, X, y): + @staticmethod + def evaluate_model(model, X, y): y_pred = model.predict(X) accuracy = accuracy_score(y, y_pred) return accuracy diff --git a/src/wallet/hd_wallet.py b/src/wallet/hd_wallet.py index 2c6ea4239..b4ed03093 100644 --- a/src/wallet/hd_wallet.py +++ b/src/wallet/hd_wallet.py @@ -12,7 +12,8 @@ def generate_address(self, index): self.addresses[index] = (private_key, public_key) return public_key - def _generate_public_key(self, private_key): + @staticmethod + def _generate_public_key(private_key): return hashlib.sha256(private_key.encode()).hexdigest() def get_address(self, index): diff --git a/src/wallet/wallet.py b/src/wallet/wallet.py index 00ecf7464..0708c64e6 100644 --- a/src/wallet/wallet.py +++ b/src/wallet/wallet.py @@ -14,7 +14,8 @@ def generate_address(self, index): self.addresses[index] = (private_key, public_key) return public_key - def _generate_public_key(self, private_key): + @staticmethod + def _generate_public_key(private_key): return hashlib.sha256(private_key.encode()).hexdigest() class Wallet: From dfbe876d6543417b61fc11881b8e9661be5e2bd3 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:37:48 +0530 Subject: [PATCH 5/6] refactor: remove unused imports (#25) An object has been imported but is not used anywhere in the file. It should either be used or the import should be removed. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> return the statement @commkt glid driiffft --- quantum_integration/quantum_algorithms/grovers_algorithm.py | 1 - quantum_integration/quantum_algorithms/shors_algorithm.py | 2 +- .../quantum_machine_learning/quantum_neural_network.py | 1 - quantum_integration/quantum_machine_learning/quantum_svm.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/quantum_integration/quantum_algorithms/grovers_algorithm.py b/quantum_integration/quantum_algorithms/grovers_algorithm.py index c98d090c8..6275a5503 100644 --- a/quantum_integration/quantum_algorithms/grovers_algorithm.py +++ b/quantum_integration/quantum_algorithms/grovers_algorithm.py @@ -1,6 +1,5 @@ from qiskit import QuantumCircuit, Aer, execute from qiskit.visualization import plot_histogram -import numpy as np def grovers_algorithm(n, target): # Create a quantum circuit with n qubits diff --git a/quantum_integration/quantum_algorithms/shors_algorithm.py b/quantum_integration/quantum_algorithms/shors_algorithm.py index 54c60b0d4..b7b0f85b9 100644 --- a/quantum_integration/quantum_algorithms/shors_algorithm.py +++ b/quantum_integration/quantum_algorithms/shors_algorithm.py @@ -1,4 +1,4 @@ -from qiskit import QuantumCircuit, Aer, transpile, assemble, execute +from qiskit import QuantumCircuit, Aer, execute import numpy as np from qiskit.visualization import plot_histogram diff --git a/quantum_integration/quantum_machine_learning/quantum_neural_network.py b/quantum_integration/quantum_machine_learning/quantum_neural_network.py index 7abc19efb..346befd8b 100644 --- a/quantum_integration/quantum_machine_learning/quantum_neural_network.py +++ b/quantum_integration/quantum_machine_learning/quantum_neural_network.py @@ -1,6 +1,5 @@ from qiskit import QuantumCircuit, Aer, execute from qiskit.circuit.library import TwoLocal -import numpy as np from sklearn.datasets import make_moons from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score diff --git a/quantum_integration/quantum_machine_learning/quantum_svm.py b/quantum_integration/quantum_machine_learning/quantum_svm.py index 0bc244114..a34440c2f 100644 --- a/quantum_integration/quantum_machine_learning/quantum_svm.py +++ b/quantum_integration/quantum_machine_learning/quantum_svm.py @@ -1,7 +1,6 @@ from qiskit import Aer from qiskit_machine_learning.algorithms import QSVC from qiskit_machine_learning.kernels import QuantumKernel -import numpy as np from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score From 29628c5dea0f33e510279e43fc1c0c1d692381ec Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:20:45 +0530 Subject: [PATCH 6/6] refactor: drop redundant type when declaration's LHS mentions it (#10) * ci: update .deepsource.toml * ci: update .deepsource.toml * refactor: make JUnit5 test classes and methods package-private JUnit5 test classes and methods should be package-private. * refactor: fix unused method receiver Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. * refactor: fix unused method receiver (#5) Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * refactor: drop redundant type when declaration's LHS mentions it C# lets you either specify the type or use the `var` keyword when declaring or instantiating an object. If the type is explicitly spelled out, it can be omitted from the RHS. This syntax is cleaner and concise. --------- Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: perumandla sai veerender --- nexus_banking_networks/nexus/autonomous_robotics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus_banking_networks/nexus/autonomous_robotics.cs b/nexus_banking_networks/nexus/autonomous_robotics.cs index f0e197360..730c4c866 100644 --- a/nexus_banking_networks/nexus/autonomous_robotics.cs +++ b/nexus_banking_networks/nexus/autonomous_robotics.cs @@ -21,7 +21,7 @@ public void performTransaction() { } public static void Main(string[] args) { - AutonomousRobotics robotics = new AutonomousRobotics(); + AutonomousRobotics robotics = new(); robotics.navigateToATM(); robotics.performTransaction(); }