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

Commit

Permalink
update to current develop 1.5.0-unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed May 2, 2016
1 parent 9523a11 commit e545ed7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions accounts/account_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ func (am *Manager) Sign(addr common.Address, hash []byte) (signature []byte, err
}

func (am *Manager) GetUnlocked(addr common.Address) (prvkey *ecdsa.PrivateKey, err error) {
am.mutex.RLock()
defer am.mutex.RUnlock()
am.mu.RLock()
defer am.mu.RUnlock()
unlockedKey, found := am.unlocked[addr]
if !found {
return nil, ErrLocked
Expand Down
1 change: 0 additions & 1 deletion common/registrar/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/compiler"
"github.com/ethereum/go-ethereum/common/registrar"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
Expand Down
21 changes: 6 additions & 15 deletions internal/web3ext/web3ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,19 @@ web3._extend({
name: 'lockAccount',
call: 'personal_lockAccount',
params: 1
}),
new web3._extend.Method({
name: 'importRawKey',
call: 'personal_importRawKey',
params: 2
})
],
properties:
[
new web3._extend.Property({
name: 'listAccounts',
getter: 'personal_listAccounts'
})
}),
]
});
`
Expand Down Expand Up @@ -210,20 +215,6 @@ web3._extend({
});
`

const Personal_JS = `
web3._extend({
property: 'personal',
methods:
[
new web3._extend.Method({
name: 'importRawKey',
call: 'personal_importRawKey',
params: 2
})
]
});
`

const Eth_JS = `
web3._extend({
property: 'eth',
Expand Down

0 comments on commit e545ed7

Please sign in to comment.