OutlierVentures / BuyCoPoc

BuyCo.io Proof of Concept on an Ethereum blockchain
Apache License 2.0
0 stars 1 forks source link

Deployment on Latte: t.blockchainService.getProposalContractAt is not a function #93

Closed AronVanAmmers closed 8 years ago

AronVanAmmers commented 8 years ago

Merged all changes from dev_ava to development branch. git pulled on latte.

Now getting this when opening backing page for a proposal:

TypeError: t.blockchainService.getProposalContractAt is not a function
    at proposalController.js:95
    at angular.js:10498
    at processQueue (angular.js:14991)
    at angular.js:15007
    at Scope.$eval (angular.js:16251)
    at Scope.$digest (angular.js:16069)
    at Scope.$apply (angular.js:16359)
    at done (angular.js:10791)
    at completeRequest (angular.js:10989)
    at XMLHttpRequest.requestLoaded (angular.js:10930)
AronVanAmmers commented 8 years ago

This was due to an old version of the generated JS file blockchainService.js remaining in an old location. Deleting /client/ and git reset --hard solved it.

This is a general point of attention when moving files around. Possibly it's a better deployment strategy to always delete the whole tree except the local files (e.g. config.json) and re-get.