Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Apr 17, 2019
1 parent 1409f9b commit c8e0f3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (c *client) Add(ctx context.Context, r io.ReadCloser) (AddResponse, error)
}

func (c *client) Status(ctx context.Context, ci cid.Cid) (StatusResponse, error) {
resp, err := http.Get(c.url + "status")
resp, err := http.Get(c.url + "status/" + ci.String())
if err != nil {
return StatusResponse{}, err
}
Expand Down
13 changes: 7 additions & 6 deletions cmd/gofs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
app.Version = "0.0.1"
app.Usage = "GoChain filesystem cli tool"
var api, rpc, contract string
var recursive bool
//TODO var recursive bool
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "url",
Expand Down Expand Up @@ -150,11 +150,12 @@ func main() {
Name: "add",
Usage: "Add and pin a file.",
Flags: []cli.Flag{
cli.BoolFlag{
Name: "recursive, r",
Usage: "Add directory recursively",
Destination: &recursive,
},
//TODO
//cli.BoolFlag{
// Name: "recursive, r",
// Usage: "Add directory recursively",
// Destination: &recursive,
//},
},
Action: func(c *cli.Context) error {
path := c.Args().First()
Expand Down
1 change: 1 addition & 0 deletions contracts/pinner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ contract GOFSPinner is Pinner, owned {
!(cid[0] == 0x12 && cid[1] == 0x20),
"Version 0 CID not allowed"
);
//TODO require gbh > 0
uint cost = gbh*rate;
require(
msg.value >= cost,
Expand Down

0 comments on commit c8e0f3c

Please sign in to comment.