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,
|
||||
} 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) => {
|
||||
|
|
Loading…
Reference in New Issue