Open kypanz opened 2 years ago
Solved, i create a BEP20 smart contract called DFY and uncomment the const artifactDFYToken = "DFY";
line, now i am trying to solve this errors :
1) Deploy DFY Factory
unit test DFY
RRRRR => Case 1 :To test Time origin creator put on auction , check bidder bit use BNB to bid and finish with no royalty fee : :
Error: VM Exception while processing transaction: reverted with reason string 'ERC20: transfer amount exceeds balance'
at DFY.decreaseAllowance (@openzeppelin/contracts/token/ERC20/ERC20.sol:204)
at DFY.transfer (@openzeppelin/contracts/token/ERC20/ERC20.sol:115)
at HardhatNode._mineBlockWithPendingTxs (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:1773:23)
at HardhatNode.mineBlock (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:466:16)
at EthModule._sendTransactionAndReturnHash (node_modules\hardhat\src\internal\hardhat-network\provider\modules\eth.ts:1504:18)
at HardhatNetworkProvider.request (node_modules\hardhat\src\internal\hardhat-network\provider\provider.ts:118:18)
at EthersProviderWrapper.send (node_modules\@nomiclabs\hardhat-ethers\src\internal\ethers-provider-wrapper.ts:13:20)
so i am trying to print in console what is the actual balance of the token, i am not sure but the problem can be there
Solved too, i forget premint in the BEP smart contract, now solving :
1) Deploy DFY Factory
unit test DFY
RRRRR => Case 1 :To test Time origin creator put on auction , check bidder bit use BNB to bid and finish with no royalty fee : :
Error: VM Exception while processing transaction: reverted with reason string 'startTime'
at AuctionNFT.onlyProxy (@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:39)
at <UnrecognizedContract>.<unknown> (0x0dcd1bf9a1b36ce34237eeafef220932846bcd82)
at HardhatNode._mineBlockWithPendingTxs (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:1773:23)
at HardhatNode.mineBlock (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:466:16)
at EthModule._sendTransactionAndReturnHash (node_modules\hardhat\src\internal\hardhat-network\provider\modules\eth.ts:1504:18)
at HardhatNetworkProvider.request (node_modules\hardhat\src\internal\hardhat-network\provider\provider.ts:118:18)
at EthersProviderWrapper.send (node_modules\@nomiclabs\hardhat-ethers\src\internal\ethers-provider-wrapper.ts:13:20)
Solved, the error "startTime" is because in your AcutionNFT.test.js, you need to re-defining the next lines :
// success
let _startTime = Math.floor(Date.now() / 1000) + 172800; // 2d
let _endTime = _startTime + 604800; // 7d
here are what do you have in the code :
let _startTime = Math.floor(Date.now() / 1000) + 260; // 2d
let _endTime = _startTime + 70; // 7d
Hello i have a question, i clone this repository "master" to test in my localhost, all goes fine in the compile, but when i do :
npx hardhat test
, say this error :and when i comment that line, the next error comes :
where i can get the BEP20 for test this Marketplace ?
Thanks for read ❤️