From f0d314ae764feafd5a54b5bf3692ed02bdeb8ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amar=20Fazli=C4=87?= <73897903+amar-exe@users.noreply.github.com> Date: Wed, 3 May 2023 10:26:13 +0200 Subject: [PATCH] Updated nextSteps function --- std-3/4_Onboarding/Onboarding.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/std-3/4_Onboarding/Onboarding.sol b/std-3/4_Onboarding/Onboarding.sol index 1b672f2..ad9c92a 100644 --- a/std-3/4_Onboarding/Onboarding.sol +++ b/std-3/4_Onboarding/Onboarding.sol @@ -16,7 +16,7 @@ abstract contract Onboarding { employee = Employee(_name, _email, _salary); } - function nextSteps() public view virtual; + function nextSteps() public view virtual returns (string memory); } contract Allocation is Onboarding { @@ -27,9 +27,9 @@ contract Allocation is Onboarding { return text; } - function nextSteps() public view override { + function nextSteps() public view override returns (string memory) { // Perform necessary actions for allocation - sendWelcomeEmail(); + return sendWelcomeEmail(); } function sendWelcomeEmail() internal view returns (string memory) {