Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created May 20, 2020 11:29
Show Gist options
  • Save alexroan/b2b700a26ccb22f1ce1062ec2845fe35 to your computer and use it in GitHub Desktop.
Save alexroan/b2b700a26ccb22f1ce1062ec2845fe35 to your computer and use it in GitHub Desktop.
topupwallet.js
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