Created
May 20, 2020 11:29
-
-
Save alexroan/b2b700a26ccb22f1ce1062ec2845fe35 to your computer and use it in GitHub Desktop.
topupwallet.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const topupWallet = async (dispatch, account) => { | |
const ramp = new RampInstantSDK({ | |
hostAppName: 'Easy Ether', | |
hostLogoUrl: 'https://alexroan.github.io/easy-ether/static/media/logo-white.86143c9b.png', | |
variant: 'auto', | |
userAddress: account | |
}) | |
.show(); | |
dispatch(rampOpened()); | |
subscribeToRampEvents(dispatch, ramp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment