Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

added update metadata with parametrized seller fee #19

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

halaprix
Copy link
Contributor

@halaprix halaprix commented Oct 6, 2021

Added the ability to update metadata and set the seller fee (was set to 0 by default)

update_token_metadata(api_endpoint, source_account, mint_token_id, link, data, creators_addresses, creators_verified, creators_share, fee)

parametrized sellers fee

added update

added update

added update

reordered arguments
@jarry-xiao
Copy link
Contributor

Thanks looks good

@jarry-xiao jarry-xiao merged commit 2ba1566 into metaplex-foundation:main Oct 14, 2021
@nshunt639
Copy link

Is it possible to update the metadata before minting?

@crypt0miester
Copy link
Contributor

Is it possible to update the metadata before minting?

which metadata? this pr does exactly update even after minting.

def update_metadata_instruction_data(name, symbol, uri, creators, verified, share):
_data = bytes([1]) + _get_data_buffer(name, symbol, uri, creators, verified, share) + bytes([0, 0])
def update_metadata_instruction_data(name, symbol, uri, fee, creators, verified, share):
_data = bytes([1]) + _get_data_buffer(name, symbol, uri, fee, creators, verified, share) + bytes([0, 0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jarry-xiao

Mr. Jarry, is the byte at the "+ bytes([0, 0])" for primary_sale_happened and is_mutable?

I think they are the ones we would change if we would like to change the primary_sale_happened and is_mutable right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants