python-api icon indicating copy to clipboard operation
python-api copied to clipboard

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

Open ifczt opened this issue 4 years ago • 7 comments

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 ~~

ifczt avatar Dec 04 '21 02:12 ifczt

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

themaqs avatar Dec 06 '21 15:12 themaqs

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.

louislandelle avatar Dec 08 '21 01:12 louislandelle

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.

aziganshin avatar Dec 10 '21 07:12 aziganshin

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!

phoebexiong avatar Dec 19 '21 05:12 phoebexiong

@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

nurav97 avatar Dec 24 '21 06:12 nurav97

@DevVarunn

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

themaqs avatar Jan 07 '22 21:01 themaqs

Guys, you need to insert the await_full_confirmation everywhere!

BedrosovaYulia avatar Feb 13 '22 20:02 BedrosovaYulia