Function Testing - Completed
PredictRAM Test Suite
Test 1:
Deploying the Portfolio Contract factory, leads to successful deployment of two contracts, portfolioBuyer and portfolioTokens.
Test 2:
addMinter function in portfolioTokens contract, successfully adds the portfolioBuyer contract as a minter and thus allows the contract to mint portfolio Tokens.
Test 3:
setTokenAddress function allows the portfolioBuyer contract to successfully mint the portfolio Tokens to the user.
Test 4:
A designated Signer is added that successfully provides the signature from the backend and allows the buyer to buy portfolio tokens. Any tampering with the data passed reverts the transaction.
Test 5:
BuyBack Function from the portfolioBuyer contract successfully, provides the value of the portfolio token , to the client according to the current market, by burning the portfolio token.
Test 6:
All the setters are working as expected.
About tester:
Solidity Developer and Tester with 1.5 years of experience in writing many P2E games. Tester with knowledge of both automated tests with hardhat and remix testing. Experienced in working with team of developers.
Copy link