Giter Club home page Giter Club logo

crowdfunding's People

Contributors

jokly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

avert

crowdfunding's Issues

Writing Tests and Bug Fixes

Issue Description

The current smart contracts implementation for the crowdfunding platform requires thorough testing to ensure its functionality and security. Additionally, there are identified issues and potential bugs that need to be addressed for a robust and reliable application.

Tasks

  1. Write Unit Tests
    Description: Develop comprehensive unit tests to validate the functionality and correctness of the smart contract's methods.
    Acceptance Criteria:

    • Tests should cover various scenarios, including valid and invalid inputs.
  2. Implement Test Cases for Boundary Conditions
    Description: Write test cases to verify the behavior of the smart contract at its boundary conditions.
    Acceptance Criteria:

    • Test cases should cover edge cases such as minimum and maximum values for amounts and deadlines.
  3. Test Withdrawal Functionality
    Description: Verify that the withdraw function correctly allows the beneficiary to withdraw funds when the target amount is met.
    Acceptance Criteria:

    • Ensure that the beneficiary can only withdraw funds if the target amount is met.
    • Confirm that the correct amount is transferred to the beneficiary.
  4. Test Project Expiry and Refund Functionality
    Description: Validate the behavior of the smart contract when a campaign expires and contributors request refunds.
    Acceptance Criteria:

    • Test that the project expires by the specified deadline.
    • Confirm that contributors can request and receive refunds if the project expires.
  5. Test Factory Functionality
    Description: Develop unit tests to validate the functionality of the factory contract, ensuring it can create crowdfunding campaigns as intended.
    Acceptance Criteria:

    • Tests should confirm that campaign instances are created with unique details and addresses.
  6. Bug Fixes
    Description: Address any identified bugs or issues in the current smart contracts implementation.
    Acceptance Criteria:

    • Bugs are resolved, and the contract functions as expected in all scenarios.

Additional Information

The project repository and codebase can be found here.
For any questions or clarifications, feel free to reach out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.