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 @@

About

You’ve received L2 contributions

- Some of your grant funds may be in L2 (zkSync or Polygon). Polygon contributions are not supported - for your grant since it is using a contract address (e.g. Gnosis Safe, multi-sig wallet). + Some of your grant funds may be in L2 (zkSync or Polygon). + + Polygon contributions are not supported + for your grant since it is using a contract address (e.g. Gnosis Safe, multi-sig wallet). + + + Read more on how to withdraw from L2 wallets. + Read L2 Withdrawal guide