mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-18 12:36:34 +00:00
Add chain id to getSafeInfo response (#2288)
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
This commit is contained in:
parent
f28a248bc5
commit
eadb8aa7cf
@ -12,7 +12,7 @@ import {
|
|||||||
safeNameSelector,
|
safeNameSelector,
|
||||||
} from 'src/logic/safe/store/selectors'
|
} from 'src/logic/safe/store/selectors'
|
||||||
import { grantedSelector } from 'src/routes/safe/container/selector'
|
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 { SAFELIST_ADDRESS } from 'src/routes/routes'
|
||||||
import { isSameURL } from 'src/utils/url'
|
import { isSameURL } from 'src/utils/url'
|
||||||
import { useAnalytics, SAFE_NAVIGATION_EVENT } from 'src/utils/googleAnalytics'
|
import { useAnalytics, SAFE_NAVIGATION_EVENT } from 'src/utils/googleAnalytics'
|
||||||
@ -74,6 +74,7 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const NETWORK_NAME = getNetworkName()
|
const NETWORK_NAME = getNetworkName()
|
||||||
|
const NETWORK_ID = getNetworkId()
|
||||||
|
|
||||||
const INITIAL_CONFIRM_TX_MODAL_STATE: ConfirmTransactionModalState = {
|
const INITIAL_CONFIRM_TX_MODAL_STATE: ConfirmTransactionModalState = {
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
@ -166,6 +167,7 @@ const AppFrame = ({ appUrl }: Props): ReactElement => {
|
|||||||
communicator?.on('getSafeInfo', () => ({
|
communicator?.on('getSafeInfo', () => ({
|
||||||
safeAddress,
|
safeAddress,
|
||||||
network: NETWORK_NAME,
|
network: NETWORK_NAME,
|
||||||
|
chainId: NETWORK_ID,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
communicator?.on('rpcCall', async (msg) => {
|
communicator?.on('rpcCall', async (msg) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user