Skip to content

Commit 1a0eb90

Browse files
holimankaralabe
authored andcommitted
internal/ethapi: initialize account mutex in lock properly
1 parent 0036e2a commit 1a0eb90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/ethapi/api.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ type PrivateAccountAPI struct {
211211
// NewPrivateAccountAPI create a new PrivateAccountAPI.
212212
func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
213213
return &PrivateAccountAPI{
214-
am: b.AccountManager(),
215-
b: b,
214+
am: b.AccountManager(),
215+
nonceLock: nonceLock,
216+
b: b,
216217
}
217218
}
218219

0 commit comments

Comments
 (0)