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