mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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,
|
||||
tabId: PropTypes.number,
|
||||
}),
|
||||
setSpecialRPC: PropTypes.func,
|
||||
}
|
||||
|
||||
onComplete = async () => {
|
||||
const { history, completionMetaMetricsName, onboardingInitiator, setSpecialRPC } = this.props
|
||||
|
||||
setSpecialRPC()
|
||||
const { history, completionMetaMetricsName, onboardingInitiator } = this.props
|
||||
|
||||
this.context.metricsEvent({
|
||||
eventOpts: {
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { updateAndSetCustomRpc } from '../../../store/actions'
|
||||
import { getOnboardingInitiator } from '../../../selectors'
|
||||
import EndOfFlow from './end-of-flow.component'
|
||||
|
||||
@ -17,14 +16,4 @@ const mapStateToProps = (state) => {
|
||||
}
|
||||
}
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
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)
|
||||
export default connect(mapStateToProps)(EndOfFlow)
|
||||
|
@ -12,7 +12,6 @@ describe('End of Flow Screen', function () {
|
||||
history: {
|
||||
push: sinon.spy(),
|
||||
},
|
||||
setSpecialRPC: () => null,
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user