Skip to content

Commit

Permalink
Improvement :fix 11 issues (#776)
Browse files Browse the repository at this point in the history
## Type of change

<!--Delete points that do not apply-->
- Improvement (refactoring, restructuring repository, cleaning tech
debt, ...)

## Changes

The following changes have been made:

- Change 1:specifiy a proposal ->specify a proposal
- Change 2

## Notes

I have been studying this repository for a long time, and whenever I
come across a typo, I fix it.

I discovered 11 typos in a total of 9 files. Then I merged them
together.

The code quality is exceptionally high, so sincerely hope my PR can help
make this repository more standardized.


## Related Issues
No

Co-authored-by: Cameron Carstens <[email protected]>
  • Loading branch information
miles-six and bitzoic authored Mar 7, 2024
1 parent c3c76de commit 0178db3
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DAO/project/contracts/DAO-contract/src/interface.sw
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abi DaoVoting {
/// # Arguments
///
/// * `approve`: [bool] - whether the user voted yes or no on the proposal.
/// * `proposal_id`: [u64] - Identifier used to specifiy a proposal (0 <= proposal_id < proposal_count).
/// * `proposal_id`: [u64] - Identifier used to specify a proposal (0 <= proposal_id < proposal_count).
/// * `vote_amount`: [u64] - the amount of votes to cast on the proposal.
///
/// # Reverts
Expand Down Expand Up @@ -108,7 +108,7 @@ abi DaoVoting {
///
/// # Arguments
///
/// * `proposal_id`: [u64] - Identifier used to specifiy a proposal (0 <= proposal_id < proposal_count).
/// * `proposal_id`: [u64] - Identifier used to specify a proposal (0 <= proposal_id < proposal_count).
///
/// # Reverts
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct CancelAuctionEvent {
pub struct CreateAuctionEvent {
/// The auction id of the auction that was created.
auction_id: u64,
/// The asset in which bids will be recieved.
/// The asset in which bids will be received.
bid_asset: AssetId,
/// The asset to be sold.
sell_asset: AssetId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abi EnglishAuction {
/// * When the bidding period for the auction has passed.
/// * When the asset provided does not match the asset accepted for the auction.
/// * When the bidder is the auction's seller.
/// * When transfering of the NFT asset to the auction contract failed.
/// * When transferring of the NFT asset to the auction contract failed.
/// * When the native asset amount sent and the `bid_asset` enum do not match.
/// * When the native asset type sent and the `bid_asset` enum do not match.
/// * When the bid amount is less than the initial price.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::ops::Eq;
pub enum CampaignState {
/// The campaign has been cancelled.
Cancelled: (),
/// The campain was successful and the funds have been claimed.
/// The campaign was successful and the funds have been claimed.
Claimed: (),
/// The campaign is still accepting funds.
Funding: (),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ abi Info {
#[storage(read)]
fn asset_count() -> u64;

/// Returns information about the specificed asset, specifically if it has been added and the
/// Returns information about the specified asset, specifically if it has been added and the
/// pledged amount.
///
/// # Additional Information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl SRC3 for Contract {
///
/// # Additional Information
///
/// This conforms to the SRC-20 NFT portion of the standard for a maximium
/// This conforms to the SRC-20 NFT portion of the standard for a maximum
/// mint amount of 1 coin per asset.
///
/// # Arguments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl SRC3 for Contract {
///
/// # Additional Information
///
/// This conforms to the SRC-20 NFT portion of the standard for a maximium
/// This conforms to the SRC-20 NFT portion of the standard for a maximum
/// mint amount of 1 token per asset.
///
/// # Arguments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl SRC3 for Contract {
///
/// # Reverts
///
/// * When more than 100,000,000 coinss have been minted.
/// * When more than 100,000,000 coins have been minted.
///
/// # Number of Storage Accesses
///
Expand Down
4 changes: 2 additions & 2 deletions timelock/project/contracts/timelock-contract/src/events.sw
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct CancelEvent {
pub struct ExecuteEvent {
/// The asset that was transferred.
asset: Option<Asset>,
/// Assosciated payload of the transaction.
/// Associated payload of the transaction.
data: Option<Bytes>,
/// The id of the transaction that was executed.
id: b256,
Expand All @@ -27,7 +27,7 @@ pub struct ExecuteEvent {
pub struct QueueEvent {
/// The asset to be transferred.
asset: Option<Asset>,
/// Assosciated payload of the transaction.
/// Associated payload of the transaction.
data: Option<Bytes>,
/// The id of the transaction that was queued.
id: b256,
Expand Down

0 comments on commit 0178db3

Please sign in to comment.