1
0
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:
Erik Marks 2020-10-06 14:06:41 -07:00 committed by GitHub
parent 6a6600c730
commit 39d5bb73a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 17 deletions

View File

@ -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: {

View File

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

View File

@ -12,7 +12,6 @@ describe('End of Flow Screen', function () {
history: {
push: sinon.spy(),
},
setSpecialRPC: () => null,
}
beforeEach(function () {