1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

depoit-ether-modal - make buyEth args more explicit

This commit is contained in:
kumavis 2019-03-29 10:10:05 +08:00 committed by GitHub
parent 0ae68d1a61
commit b004b182bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,10 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) { function mapDispatchToProps (dispatch) {
return { return {
toCoinbase: (address) => { toCoinbase: (address) => {
dispatch(actions.buyEth({ network: '1', address, amount: 0 })) dispatch(actions.buyEth({ service: 'coinbase', address, amount: 0 }))
}, },
toCoinSwitch: (address) => { toCoinSwitch: (address) => {
dispatch(actions.buyEth({ service: 'coinswitch', address, amount: 0 })) dispatch(actions.buyEth({ service: 'coinswitch', address }))
}, },
hideModal: () => { hideModal: () => {
dispatch(actions.hideModal()) dispatch(actions.hideModal())