Skip to content

Commit

Permalink
Update blockchain.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Feb 27, 2024
1 parent d001067 commit d53362d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mobile/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"math/big"
"strconv"
"strings"

"github.com/functionland/go-fula/blockchain"
wifi "github.com/functionland/go-fula/wap/pkg/wifi"
Expand Down Expand Up @@ -123,8 +124,9 @@ func (c *Client) ManifestAvailable(poolID int) ([]byte, error) {
return c.bl.ManifestAvailable(ctx, c.bloxPid, blockchain.ManifestAvailableRequest{PoolID: poolID})
}

func (c *Client) BatchUploadManifest(cidArray []string, poolID int, replicationFactor int) ([]byte, error) {
func (c *Client) BatchUploadManifest(cidsBytes []byte, poolID int, replicationFactor int) ([]byte, error) {
ctx := context.TODO()
cidArray := strings.Split(string(cidsBytes), "|")
return c.bl.ManifestBatchUpload(ctx, c.bloxPid, blockchain.ManifestBatchUploadMobileRequest{Cid: cidArray, PoolID: poolID, ReplicationFactor: replicationFactor})
}

Expand Down

0 comments on commit d53362d

Please sign in to comment.