Skip to content

Commit

Permalink
more publish handler prints
Browse files Browse the repository at this point in the history
  • Loading branch information
avendauz committed Aug 9, 2021
1 parent e020a36 commit e14a417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions x/nft/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ func handleMsgPublishFile(ctx sdk.Context, k Keeper, msg *types.MsgPublishFile)
err := os.Symlink(k.HomeDir+"/nft/"+msg.Hash, k.HomeDir+"/nft/"+msg.Vendor + "-" + msg.Id)

if err != nil {
fmt.Println("First symlink failed")
return nil, err
}
fmt.Println("Filling nft info struct")
info := types.NftInfo{
Id: msg.Id,
Vendor: msg.Vendor,
Expand Down
2 changes: 1 addition & 1 deletion x/nft/keeper/createNft.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (k Keeper) BroadcastPublishFile(ctx sdk.Context, id string, vendor string,
Mime: mime,
Metainfo: metaBytes,
}

fmt.Println("BroadcastPublishFile calling broadcaster", publishMsg)
result := <- k.MsgBroadcaster(ctx, []sdk.Msg{&publishMsg}, "nft")
if result.Error != nil {
return result.Error
Expand Down

0 comments on commit e14a417

Please sign in to comment.