diff --git a/app/assets/v2/js/grants/_detail-component.js b/app/assets/v2/js/grants/_detail-component.js index c96086869c9..58b5dc5b027 100644 --- a/app/assets/v2/js/grants/_detail-component.js +++ b/app/assets/v2/js/grants/_detail-component.js @@ -590,6 +590,17 @@ Vue.component('grant-details', { ] }; }, + computed: { + async grantIsContract() { + const { admin_address } = this.grant + if (admin_address) { + const code = await web3.eth.getCode(admin_address); + + return code !== '0x'; + } + return false; + } + }, mounted: function() { const vm = this; diff --git a/app/grants/templates/grants/detail/template-grant-details.html b/app/grants/templates/grants/detail/template-grant-details.html index de7f3b24238..3112b6ba923 100644 --- a/app/grants/templates/grants/detail/template-grant-details.html +++ b/app/grants/templates/grants/detail/template-grant-details.html @@ -445,8 +445,14 @@