mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove setSpecialRpc functionality (#9490)
This commit is contained in:
parent
6a6600c730
commit
39d5bb73a7
@ -19,13 +19,10 @@ export default class EndOfFlowScreen extends PureComponent {
|
|||||||
location: PropTypes.string,
|
location: PropTypes.string,
|
||||||
tabId: PropTypes.number,
|
tabId: PropTypes.number,
|
||||||
}),
|
}),
|
||||||
setSpecialRPC: PropTypes.func,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onComplete = async () => {
|
onComplete = async () => {
|
||||||
const { history, completionMetaMetricsName, onboardingInitiator, setSpecialRPC } = this.props
|
const { history, completionMetaMetricsName, onboardingInitiator } = this.props
|
||||||
|
|
||||||
setSpecialRPC()
|
|
||||||
|
|
||||||
this.context.metricsEvent({
|
this.context.metricsEvent({
|
||||||
eventOpts: {
|
eventOpts: {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { updateAndSetCustomRpc } from '../../../store/actions'
|
|
||||||
import { getOnboardingInitiator } from '../../../selectors'
|
import { getOnboardingInitiator } from '../../../selectors'
|
||||||
import EndOfFlow from './end-of-flow.component'
|
import EndOfFlow from './end-of-flow.component'
|
||||||
|
|
||||||
@ -17,14 +16,4 @@ const mapStateToProps = (state) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => {
|
export default connect(mapStateToProps)(EndOfFlow)
|
||||||
return {
|
|
||||||
setSpecialRPC: () => {
|
|
||||||
if (!process.env.IN_TEST) {
|
|
||||||
dispatch(updateAndSetCustomRpc('https://ganache-testnet.airswap-dev.codefi.network', '1', 'ETH', 'mainnet', {}))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(EndOfFlow)
|
|
||||||
|
@ -12,7 +12,6 @@ describe('End of Flow Screen', function () {
|
|||||||
history: {
|
history: {
|
||||||
push: sinon.spy(),
|
push: sinon.spy(),
|
||||||
},
|
},
|
||||||
setSpecialRPC: () => null,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user