Skip to content

Commit

Permalink
[eth] fixed wallet init
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lenz committed Jun 22, 2018
1 parent b44b049 commit 8aa7244
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ethereum/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
const ethers = require('./ethers');
const vmProvider = require('./vmProvider');
import {pangeaETHAddress} from '../vm-raw'
const VMProvider = require('./vmProvider');
const VMSigner = require('./VMSigner');

const provider = new VMProvider();

export default new VMSigner(provider, pangeaETHAddress());
6 changes: 5 additions & 1 deletion vm-raw/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ export default {
* @param {TransactionParams} transactionParams
* @param {function} callback will be called with the transaction (including TX hash). value, gasLimit, gasPrice must be base 10
*/
sendETHTransaction: global.sendETHTransaction
sendETHTransaction: global.sendETHTransaction,
/**
* @desc get ethereum address of the current user (from pangea)
*/
pangeaETHAddress: global.pangeaETHAddress
}

0 comments on commit 8aa7244

Please sign in to comment.