Skip to content

Commit

Permalink
Merge pull request #146 from kaleido-io/fix-unlock-timeout
Browse files Browse the repository at this point in the history
Leave ethereum accounts unlocked indefinitely
  • Loading branch information
nguyer committed Feb 16, 2022
2 parents 1d1ba52 + 58ec4dc commit 2f5699f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/blockchain/ethereum/geth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type GethClient struct {
}

type RpcRequest struct {
JsonRPC string `json:"jsonrpc"`
ID int `json:"id"`
Method string `json:"method"`
Params []string `json:"params"`
JsonRPC string `json:"jsonrpc"`
ID int `json:"id"`
Method string `json:"method"`
Params []interface{} `json:"params"`
}

func NewGethClient(rpcUrl string) *GethClient {
Expand All @@ -46,7 +46,7 @@ func (g *GethClient) UnlockAccount(address string, password string) error {
JsonRPC: "2.0",
ID: 0,
Method: "personal_unlockAccount",
Params: []string{address, password},
Params: []interface{}{address, password, 0},
})
if err != nil {
return err
Expand Down

0 comments on commit 2f5699f

Please sign in to comment.