mirror of
https://github.com/placeholder-soft/web.git
synced 2026-01-12 17:02:57 +08:00
Fix Variable Name Issues and Grammar Errors (#1231)
* Fix variable name issues and grammar errors * reverted * reverted2
This commit is contained in:
@@ -50,7 +50,7 @@ Write a function called `appendToNumbers` that takes a `uint[] calldata` array c
|
||||
|
||||
At the contract level, add an `address` array called `senders` and a `uint` array called `timestamps`.
|
||||
|
||||
Write a function called `saveTimestamp` that takes a `uint` called `_unixTimestamp` as an argument. When called, it should add the address of the caller to the end of `senders` and the `_unixTimeStamp` to `timestamps`.
|
||||
Write a function called `saveTimestamp` that takes a `uint` called `_unixTimestamp` as an argument. When called, it should add the address of the caller to the end of `senders` and the `_unixTimestamp` to `timestamps`.
|
||||
|
||||
:::tip
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Find the documentation for the `EnumerableSet` under _Utils_. This library will
|
||||
|
||||
Create a new file to work in and add the `pragma` and license identifier.
|
||||
|
||||
In Remix, you can import libraries directly from Github!
|
||||
In Remix, you can import libraries directly from GitHub!
|
||||
|
||||
```solidity
|
||||
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol";
|
||||
|
||||
@@ -149,7 +149,7 @@ Review the **Warning** in the [layout] section of the docs for more details!
|
||||
|
||||
### Add a Function to Update `age`
|
||||
|
||||
It would also be good to be able to update the `age` value. This problem has slightly different considerations. Sadly, `age` will never go down. It should also probably only go up by one year for each update. The `++` operator works in Solidity, so we can use that to create a function that simple increments age when called.
|
||||
It would also be good to be able to update the `age` value. This problem has slightly different considerations. Sadly, `age` will never go down. It should also probably only go up by one year for each update. The `++` operator works in Solidity, so we can use that to create a function that simply increments age when called.
|
||||
|
||||
<details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user