Skip to content

Instantly share code, notes, and snippets.

@sparrowDom
Created February 28, 2019 18:36
Show Gist options
  • Save sparrowDom/9346c7384a245d1dfbc584c648d182ec to your computer and use it in GitHub Desktop.
Save sparrowDom/9346c7384a245d1dfbc584c648d182ec to your computer and use it in GitHub Desktop.
Message signature
import contracts from '../../contracts'
export default async (_, { address, message }) => {
console.log("Signing ", message, "with account", address)
return await contracts.web3.eth.sign(message, address)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment