Skip to content

Commit

Permalink
temp logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lpopo0856 committed Jun 11, 2024
1 parent d3edc08 commit 84a0451
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/feralfile-exhibition-v4_2/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"

ethereum "github.com/bitmark-inc/account-vault-ethereum"
Expand Down Expand Up @@ -420,6 +421,8 @@ func (c *FeralfileExhibitionV4_2Contract) Parse(
return nil, err
}

log.Warn("parsed arg", "arg", params)

rVal, err := hex.DecodeString(strings.Replace(params.R, "0x", "", -1))
if err != nil {
return nil, err
Expand Down Expand Up @@ -448,6 +451,7 @@ func (c *FeralfileExhibitionV4_2Contract) Parse(
Bps: &bps,
})
}
log.Warn("revenueShares", "revenueShares", revenueShares)

saleData := feralfilev4.IFeralfileSaleDataV2SaleDataV2{
Price: &params.SaleData.Price.Int,
Expand All @@ -461,6 +465,8 @@ func (c *FeralfileExhibitionV4_2Contract) Parse(
PayByVaultContract: params.SaleData.PayByVaultContract,
}

log.Warn("saleData", "saleData", saleData)

return []interface{}{r32Val, s32Val, uint8(vVal), saleData}, nil
case "setAdvanceSetting":
var params struct {
Expand Down

0 comments on commit 84a0451

Please sign in to comment.