Skip to content

Commit

Permalink
Updated nextSteps function
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-exe authored and Aniket-Engg committed May 4, 2023
1 parent 40bd6dc commit f0d314a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std-3/4_Onboarding/Onboarding.sol
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down

0 comments on commit f0d314a

Please sign in to comment.