From eadb8aa7cf679f931d837928022472371f675fd2 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Thu, 13 May 2021 13:02:11 +0400 Subject: [PATCH] Add chain id to getSafeInfo response (#2288) Co-authored-by: nicolas --- src/routes/safe/components/Apps/components/AppFrame.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/safe/components/Apps/components/AppFrame.tsx b/src/routes/safe/components/Apps/components/AppFrame.tsx index e332d6c9..1367cfb2 100644 --- a/src/routes/safe/components/Apps/components/AppFrame.tsx +++ b/src/routes/safe/components/Apps/components/AppFrame.tsx @@ -12,7 +12,7 @@ import { safeNameSelector, } from 'src/logic/safe/store/selectors' import { grantedSelector } from 'src/routes/safe/container/selector' -import { getNetworkName, getTxServiceUrl } from 'src/config' +import { getNetworkId, getNetworkName, getTxServiceUrl } from 'src/config' import { SAFELIST_ADDRESS } from 'src/routes/routes' import { isSameURL } from 'src/utils/url' import { useAnalytics, SAFE_NAVIGATION_EVENT } from 'src/utils/googleAnalytics' @@ -74,6 +74,7 @@ type Props = { } const NETWORK_NAME = getNetworkName() +const NETWORK_ID = getNetworkId() const INITIAL_CONFIRM_TX_MODAL_STATE: ConfirmTransactionModalState = { isOpen: false, @@ -166,6 +167,7 @@ const AppFrame = ({ appUrl }: Props): ReactElement => { communicator?.on('getSafeInfo', () => ({ safeAddress, network: NETWORK_NAME, + chainId: NETWORK_ID, })) communicator?.on('rpcCall', async (msg) => {