Skip to content

Commit

Permalink
Simplify account tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfranblanco committed Jun 5, 2017
1 parent 2660861 commit 7bf2379
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ public async Task ShouldBeAbleToTransferBetweenAccountsLoadingEncryptedPrivateKe
//Mac: /Library/Ethereum/keystore
//Windows: %APPDATA%/Ethereum


//if not using portable or netstandard (^net45) you can use LoadFromKeyStoreFile to load the file from the file system.

var keyStoreService = new KeyStore.KeyStoreService();
var key = keyStoreService.DecryptKeyStoreFromJson(password, keyStoreEncryptedJson);

var account = new Account(key);
var account = Account.LoadFromKeyStore(keyStoreEncryptedJson, password);
var web3 = new Web3.Web3(account);

//The transaction receipt polling service is a simple utility service to poll for receipts until mined
Expand Down

0 comments on commit 7bf2379

Please sign in to comment.