fixed the merged break for to->cmd/lotus-fountain/main.go

This commit is contained in:
Jianhui Xie 2023-05-12 10:48:18 -07:00
parent 9b0cbbb0a8
commit 9486aa98db

View File

@ -275,13 +275,13 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.ctx, &types.Message{
Value: types.BigInt(h.sendPerRequest),
From: h.from,
To: to,
To: filecoinAddress,
}, nil)
} else if r.RequestURI == "/datacap" {
var params []byte
params, err = actors.SerializeParams(
&verifregtypes9.AddVerifiedClientParams{
Address: to,
Address: filecoinAddress,
Allowance: h.allowance,
})
if err != nil {
@ -300,7 +300,6 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return