Skip to content

Improvements- #2

Open
anupama12sg wants to merge 2 commits intogidson5:masterfrom
anupama12sg:master
Open

Improvements- #2
anupama12sg wants to merge 2 commits intogidson5:masterfrom
anupama12sg:master

Conversation

@anupama12sg
Copy link
Copy Markdown

  • In Step 2:
    a) In the withdraw() function, it's better to use the transfer() method instead of sendValue() to transfer funds because the transfer() method has built-in checks to prevent re-entrancy attacks.

  • Added relevant comments to the code for better understanding.

  • Indented the code to make it look neat.

  • Added relevant links.

  • Corrected grammatical mistakes.

  • Did para-phrasing.

  • Added proper spacing between sentences for neatness of the document.

  • Added punctuations wherever, required.

-In gallery.html:
a) There is a minor issue with the use of the class attribute in the HTML tags which I have corrected. In JSX, which is a syntax extension of JavaScript used in React, the class attribute should be replaced with the className attribute.

  • Added relevant comments to the code.
  • Applied code indentation.

- In Step 2:
In the `withdraw()` function, it's better to use the `transfer()` method instead of `sendValue()` to transfer funds because the `transfer()` method has built-in checks to prevent re-entrancy attacks.

- Added relevant comments to the code for better understanding.
- Indented the code to make it look neat.
- Corrected grammatical mistakes.
- Did para-phrasing.
- Added proper spacing between sentences for neatness of the document.
- Added punctuations wherever, required.
- There is a minor issue with the use of the class attribute in the HTML tags which I have corrected. In JSX, which is a syntax extension of JavaScript used in React, the `class` attribute should be replaced with the `className` attribute.
- Added relevant comments to the code.
- Applied code indentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant