Browse Source

Fix address type in js test

Gustav Simonsson 10 năm trước cách đây
mục cha
commit
231fe04f03
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cmd/geth/js_test.go

+ 1 - 1
cmd/geth/js_test.go

@@ -45,7 +45,7 @@ type testjethre struct {
 }
 
 func (self *testjethre) UnlockAccount(acc []byte) bool {
-	err := self.ethereum.AccountManager().Unlock(acc, "")
+	err := self.ethereum.AccountManager().Unlock(common.BytesToAddress(acc), "")
 	if err != nil {
 		panic("unable to unlock")
 	}