Skip to content

Commit

Permalink
update method mapping for pack
Browse files Browse the repository at this point in the history
  • Loading branch information
hvthhien committed May 27, 2024
1 parent e6da427 commit 08f9d6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/feralfile-exhibition-v4_2/feralfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ func (c *FeralfileExhibitionV4_2Contract) Pack(
return nil, err
}

return abi.Pack(method, parsedArgs...)
mappedMethod := method
if method == "mintArtworks" {
mappedMethod = "mintArtworksWithIndex"
}
return abi.Pack(mappedMethod, parsedArgs...)
}

func (c *FeralfileExhibitionV4_2Contract) Parse(
Expand Down

0 comments on commit 08f9d6d

Please sign in to comment.