Skip to content

Commit

Permalink
fix conflict issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jollyjoker992 committed Apr 22, 2024
1 parent deca2b5 commit 09185ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contracts/feralfile-exhibition-v4/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ func (c *FeralfileExhibitionV4Contract) Call(
t.GasLimit = gasLimit

return contract.SetApprovalForAll(t, operator, approved)
<<<<<<< HEAD
case "safeTransferFrom":
if len(params) != 3 {
return nil, fmt.Errorf("invalid params")
Expand All @@ -225,14 +224,12 @@ func (c *FeralfileExhibitionV4Contract) Call(
from,
to,
tokenID)
=======
case "setAdvanceSetting":
if len(params) != 2 {
return nil, errors.New("Invalid parameters")
}

return contract.SetAdvanceSetting(t, params[0].([]common.Address), params[1].([]*big.Int))
>>>>>>> develop
default:
return nil, fmt.Errorf("unsupported method")
}
Expand Down Expand Up @@ -400,6 +397,10 @@ func (c *FeralfileExhibitionV4Contract) Parse(
To common.Address `json:"to"`
TokenID ethereum.BigInt `json:"token_id"`
}
if err := json.Unmarshal(arguments, &params); err != nil {
return nil, err
}

return []interface{}{params.From, params.To, &params.TokenID.Int}, nil
case "setAdvanceSetting":
var params struct {
Expand All @@ -409,7 +410,7 @@ func (c *FeralfileExhibitionV4Contract) Parse(
if err := json.Unmarshal(arguments, &params); err != nil {
return nil, err
}

advanceAmounts := make([]*big.Int, len(params.AdvanceAmounts))
for i, v := range params.AdvanceAmounts {
amount := v.Int // closure issue
Expand Down

0 comments on commit 09185ec

Please sign in to comment.