Skip to content
Permalink
Browse files

add contract source to TokenController

  • Loading branch information...
elaineo committed Mar 20, 2017
1 parent 6ad0fa4 commit e1d0f78abf3f9d111ac1b28bc692522d14ce977a
Showing with 18 additions and 1 deletion.
  1. +18 −1 public/js/controllers/TokenController.js
@@ -48,4 +48,21 @@ angular.module('BlocksApp').controller('TokenController', function($stateParams,

}

})
})
.directive('contractSource', function($http) {
return {
restrict: 'E',
templateUrl: '/views/contract-source.html',
scope: false,
link: function(scope, elem, attrs){
//fetch contract stuff
$http({
method: 'POST',
url: '/compile',
data: {"addr": scope.addrHash, "action": "find"}
}).success(function(data) {
scope.contract = data;
});
}
}
})

0 comments on commit e1d0f78

Please sign in to comment.
You can’t perform that action at this time.