From 6949d8709ada310ea014e08788b240bf575dc3b1 Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Thu, 10 Aug 2023 10:20:00 +0800 Subject: [PATCH 1/2] fix(ui-ux): update token contract address type to be a contract first (#314) --- src/pages/address/[aid].tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/address/[aid].tsx b/src/pages/address/[aid].tsx index 704b850a..1876466e 100644 --- a/src/pages/address/[aid].tsx +++ b/src/pages/address/[aid].tsx @@ -55,10 +55,10 @@ function getAddressType({ switch (true) { case isTokenPage: return AddressType.Token; - case data.is_contract && data.token === null: - return AddressType.Contract; - case data.token !== null: + case data.is_contract && data.token !== null: return AddressType.TokenContract; + case data.is_contract: + return AddressType.Contract; default: return AddressType.Wallet; } From 717613975220399148231b97cad564cd36be31b3 Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Fri, 11 Aug 2023 11:05:04 +0800 Subject: [PATCH 2/2] fix(core): whitelist changi.dfi.team rpc (#325) --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index fb69b9e7..83c9e4d8 100644 --- a/next.config.js +++ b/next.config.js @@ -15,7 +15,7 @@ const securityHeaders = [ };` + `style-src 'self' fonts.googleapis.com 'unsafe-inline';` + `font-src fonts.gstatic.com;` + - `connect-src 'self' changi.ocean.jellyfishsdk.com blockscout-index.changi.dfi.team ${ + `connect-src 'self' changi.ocean.jellyfishsdk.com changi.dfi.team ${ process.env.NODE_ENV === "development" ? `ws://localhost:3000/_next/webpack-hmr base-goerli.blockscout.com eth-goerli.blockscout.com` : ""