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

When I deploy, sometimes I succeed and sometimes I fail. Who can help solve this problem,That's strange!! #31

Open
ifczt opened this issue Dec 4, 2021 · 7 comments

Comments

@ifczt
Copy link

ifczt commented Dec 4, 2021

def get_metadata(client, mint_key):
    metadata_account = get_metadata_account(mint_key)
    client_metadata_account = client.get_account_info(metadata_account)
    print(client_metadata_account)
    data = base64.b64decode(client_metadata_account['result']['value']['data'][0])
    # data = base64.b64decode(client.get_account_info(metadata_account)['result']['value']['data'][0])
    metadata = unpack_metadata_account(data)
    return metadata

Output 

{'jsonrpc': '2.0', 'result': {'context': {'slot': 109953095}, 'value': None}, 'id': 2}

some time can get value some time value is None
plz help me ~~

@themaqs
Copy link

themaqs commented Dec 6, 2021

Me TOOO! They did not answer!
I had this problem last week many times!

@louislandelle
Copy link

I got this problem which was due to name/symbol when calling api.deploy(..., name, symbol, ...) not matching the metadata name/symbol values in the JSON. Changing them to match fixed it for me.

@aziganshin
Copy link

Happens all the time. It happens due to the blockchain not accepting the tx to deploy. If you look in solana.explorer, the tx won't appear there. The good question is why.

@phoebexiong
Copy link

I got this problem which was due to name/symbol when calling api.deploy(..., name, symbol, ...) not matching the metadata name/symbol values in the JSON. Changing them to match fixed it for me.

as soon as I did this it worked!

@nurav97
Copy link

nurav97 commented Dec 24, 2021

@ifczt @themaqs @louislandelle @aziganshin @phoebexiong did any of you find the solution for this issue I am facing the same issue intermittently . I have kept the symbol and name same in both places but still face the issue . if you have a solution please can you post it here

@themaqs
Copy link

themaqs commented Jan 7, 2022

@DevVarunn

Unfortunately, No! We have migrated to rust and js versions! :D

@BedrosovaYulia
Copy link

Guys, you need to insert the await_full_confirmation everywhere!

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

No branches or pull requests

7 participants