Fixed banking.sol and Enhanced the modifier #308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🛠️ Fixes Issue
👨💻 Changes proposed
onlyonwner
toonlyOwner
in all sections of code wherever it is used.Note: This type of enhancement is always advised whenever a modifier is used several times within the code. If it is used just once or twice, no need of any change.
✔️ Check List (Check all the applicable boxes)
📄 Note to reviewers
Well, this was a pure buggy code, like a single typo mistake just made the contract go in vain. It's advised that these smart contracts must be checked thoroughly before merging them in the repo. Try pasting them in
remix
or some IDE before letting them be presented within this repository.Although, I am going to check and go through the whole codebase..Maybe making some enhancements if possible!