expose ComputeStateHTMLTempl
This commit is contained in:
parent
e21ea5355f
commit
9154939d8f
@ -874,7 +874,7 @@ var stateComputeStateCmd = &cli.Command{
|
|||||||
return c.Code, nil
|
return c.Code, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return computeStateHTMLTempl(ts, stout, getCode)
|
return ComputeStateHTMLTempl(ts, stout, getCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("computed state cid: ", stout.Root)
|
fmt.Println("computed state cid: ", stout.Root)
|
||||||
@ -1081,7 +1081,7 @@ type compStateHTMLIn struct {
|
|||||||
Comp *api.ComputeStateOutput
|
Comp *api.ComputeStateOutput
|
||||||
}
|
}
|
||||||
|
|
||||||
func computeStateHTMLTempl(ts *types.TipSet, o *api.ComputeStateOutput, getCode func(addr address.Address) (cid.Cid, error)) error {
|
func ComputeStateHTMLTempl(ts *types.TipSet, o *api.ComputeStateOutput, getCode func(addr address.Address) (cid.Cid, error)) error {
|
||||||
t, err := template.New("compute_state").Funcs(map[string]interface{}{
|
t, err := template.New("compute_state").Funcs(map[string]interface{}{
|
||||||
"GetCode": getCode,
|
"GetCode": getCode,
|
||||||
"GetMethod": getMethod,
|
"GetMethod": getMethod,
|
||||||
|
Loading…
Reference in New Issue
Block a user