This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dittoFarm = new DittoFarm | |
dittoFarm(require(‘ditto-bigNumber)) | |
dittoFarm(require(‘ditto-ipfs)) | |
ditto.to.bignumber(‘add’, 3).to(‘hex’) | |
function dittoBigNumber(dittoFarm){ | |
this.registerMaker(‘prefixedhex’, ‘bignumber’, (prefixedhex) => { return new BigNumber(prefixedhex) }) | |
this.registerMaker(‘bignumber’, ‘prefixedhex’, (bignumber) => { return bignumber.toString(‘hex’) }) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async | |
✓ test: 0 | |
✓ error test: 0 | |
lib/web3/batch | |
execute | |
✓ should execute batch request | |
✓ should execute batch request for async properties | |
✓ should execute batch request with contract | |
✓ should execute batch requests and receive errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Provider: contract scenario should be able to estimate gas of a transaction (eth_estimateGas): | |
Uncaught AssertionError: 27665 == 27678 | |
+ expected - actual | |
-27665 | |
+27678 | |
at Object.callback (test/requests.js:432:18) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Forking should be able to execute calls against a contract on the forked provider via the main provider: | |
AssertionError: The field receiptTrie must have byte length of 32 | |
+ expected - actual | |
-false | |
+true | |
at GethDefaults.handleRequest (lib/subproviders/gethdefaults.js:34:5) | |
at DelayedBlockFilter.handleRequest (lib/subproviders/delayedblockfilter.js:27:3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aakils-MacBook-Pro:weifund-contracts aakilfernandes$ npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
[wafr]: compiling contracts from 1 sources... | |
/Users/aakilfernandes/projects/weifund/weifund-contracts/node_modules/solc/soljson.js:1 | |
(function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
[ '/Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/enhancers/EmptyEnhancer.sol', | |
'/Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/enhancers/CampaignEnhancer.sol', | |
'/Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/enhancers/Enhancer.sol', | |
'/Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/enhancers/Model1Enhancer.sol', | |
'/Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/enhancers/tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aakils-MacBook-Pro:weifund-contracts aakilfernandes$ npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
{**.sol} | |
parsedDirName /Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts | |
parsedFileName campaigns/Campaign.sol | |
onlyFilename Campaign.sol | |
add? false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aakils-MacBook-Pro:weifund-contracts aakilfernandes$ npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
{**.sol} | |
parsedDirName /Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts | |
parsedFileName campaigns/Campaign.sol | |
onlyFilename Campaign.sol | |
add? false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aakils-MacBook-Pro:weifund-contracts aakilfernandes$ npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
{**.sol} | |
parsedDirName /Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts | |
parsedFileName campaigns/Campaign.sol | |
onlyFilename Campaign.sol | |
filename /Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/campaigns/Campaign.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aakils-MacBook-Pro:weifund-contracts aakilfernandes$ npm run test:campaigns | |
> weifund-contracts@2.0.0 test:campaigns /Users/aakilfernandes/projects/weifund/weifund-contracts | |
> node ./node_modules/wafr/bin/wafr.js ./src/contracts --optimize 0 --exclude {**.sol} --include {**campaigns/StandardCampaign.sol,**campaigns/tests/test.StandardCampaign.sol,**campaigns/tests/CampaignUser.sol,**campaigns/Campaign.sol,**enhancers/CampaignEnhancer.sol,**tokens/Token.sol,**enhancers/Enhancer.sol,**utils/Owned.sol,**claims/BalanceClaim.sol,**claims/Claim.sol,**EmptyEnhancer.sol} | |
{**.sol} | |
filename /Users/aakilfernandes/projects/weifund/weifund-contracts/src/contracts/campaigns/Campaign.sol | |
exclude {**.sol} | |
include **campaigns/StandardCampaign.sol | |
globToRegExp(exclude, { extended: true }).test(filename) true |