Fix : Incorrect File Extension for Solidity Smart Contract #1 #2
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.
This PR renames helloworld.js to helloworld.sol to correctly reflect its content as a Solidity smart contract.
Related Issue
Closes [#1]
Changes Made
Renamed helloworld.js → helloworld.sol
Why This Fix?
Solidity code should have a .sol extension for proper recognition by compilers and development environments.
Avoids confusion, as .js suggests JavaScript, which cannot compile Solidity code.
Ensures compatibility with Solidity tools like Remix, Hardhat, and Truffle.
Testing
No functional changes, only a filename correction.
Verified that the contract syntax remains intact.
Additional Notes
Let me know if any other changes are needed. Looking forward to your review!
Regards,
@tiwariar7