Skip to content

Commit

Permalink
Merge pull request #25 from bitmark-inc/fix/bug-safe-transfer-from-pa…
Browse files Browse the repository at this point in the history
…rams

fixed bug invalid safe transfer from params
  • Loading branch information
jollyjoker992 authored Mar 26, 2024
2 parents c8f8857 + 8f71488 commit c0191ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/feralfile-exhibition-v2/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *FeralfileExhibitionV2Contract) Call(
return nil, fmt.Errorf("invalid to params")
}

tokenID, ok := params[1].(*big.Int)
tokenID, ok := params[2].(*big.Int)
if !ok {
return nil, fmt.Errorf("invalid token id params")
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/feralfile-exhibition-v3/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (c *FeralfileExhibitionV3Contract) Call(
return nil, fmt.Errorf("invalid to params")
}

tokenID, ok := params[1].(*big.Int)
tokenID, ok := params[2].(*big.Int)
if !ok {
return nil, fmt.Errorf("invalid token id params")
}
Expand Down

0 comments on commit c0191ac

Please sign in to comment.