Add chain id to getSafeInfo response (#2288)

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
This commit is contained in:
Mikhail Mikheev 2021-05-13 13:02:11 +04:00 committed by GitHub
parent f28a248bc5
commit eadb8aa7cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) => {