Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix: Use authereum signing key (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota authored Feb 20, 2020
1 parent 2b50f49 commit 319695d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {

openBoxConsent: (fromAddress, ethereum) => {
const text = 'This app wants to view and update your 3Box profile.'
if (ethereum.isAuthereum) return ethereum.signMessageWithAdminKey(text)
if (ethereum.isAuthereum) return ethereum.signMessageWithSigningKey(text)
var msg = '0x' + Buffer.from(text, 'utf8').toString('hex')
var params = [msg, fromAddress]
var method = 'personal_sign'
Expand All @@ -60,7 +60,7 @@ module.exports = {

openSpaceConsent: (fromAddress, ethereum, name) => {
const text = `Allow this app to open your ${name} space.`
if (ethereum.isAuthereum) return ethereum.signMessageWithAdminKey(text)
if (ethereum.isAuthereum) return ethereum.signMessageWithSigningKey(text)
var msg = '0x' + Buffer.from(text, 'utf8').toString('hex')
var params = [msg, fromAddress]
var method = 'personal_sign'
Expand Down

0 comments on commit 319695d

Please sign in to comment.