diff --git a/pkg/rpc/methods.go b/pkg/rpc/methods.go index 749c0266a..fb3ede412 100644 --- a/pkg/rpc/methods.go +++ b/pkg/rpc/methods.go @@ -315,8 +315,17 @@ func (c *Client) GetStorageRoot( contract common.Address, height *big.Int, ) (common.Hash, error) { + var ( + ctxWithTimeout = ctx + cancel context.CancelFunc + ) + if _, ok := ctx.Deadline(); !ok { + ctxWithTimeout, cancel = context.WithTimeout(ctx, defaultTimeout) + defer cancel() + } + proof, err := gethclient.GetProof( - ctx, + ctxWithTimeout, contract, []string{"0x0000000000000000000000000000000000000000000000000000000000000000"}, height, diff --git a/version/version.go b/version/version.go index 3c511f245..e2bf17534 100644 --- a/version/version.go +++ b/version/version.go @@ -2,7 +2,7 @@ package version // Version info. var ( - Version = "0.10.0" + Version = "0.14.0" Meta = "dev" )