Skip to content

Instantly share code, notes, and snippets.

@Kaisle
Created July 3, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaisle/bece5cbdcac17385d2f8e0cfa7c6b095 to your computer and use it in GitHub Desktop.
Save Kaisle/bece5cbdcac17385d2f8e0cfa7c6b095 to your computer and use it in GitHub Desktop.
async function signMessage(message) {
await web3.personal.sign(args...);
}
async function signPayment(contractAddress, amount) {
var message = constructPaymentMessage(contractAddress, amount);
var signed = await signMessage(message);
}
signPayment(args...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment