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

Deploy not working #25

Open
gweinz opened this issue Nov 2, 2021 · 5 comments
Open

Deploy not working #25

gweinz opened this issue Nov 2, 2021 · 5 comments

Comments

@gweinz
Copy link

gweinz commented Nov 2, 2021

It appears the deploy function is no longer working as the test_api.py is failing and returning a 400 status response on deploy calls. anyone have a fix to this or as to why it might be happening?

@crypt0miester
Copy link
Contributor

can you provide your code? which solana-py version are you using?

@gweinz
Copy link
Author

gweinz commented Nov 4, 2021

i actually used your fork. let me bring it up!

im just trying to even generate an account and airdrop and none of it works. not sure what else to do. the client returns None for value when i print too.

`import base58
import json
import os
from api import metaplex_api
from cryptography.fernet import Fernet
from solana.keypair import Keypair
from solana.rpc.api import Client

account = Keypair()

cfg = {"PRIVATE_KEY": base58.b58encode(account.secret_key).decode("ascii"), "PUBLIC_KEY": str(account.public_key), "DECRYPTION_KEY": Fernet.generate_key().decode("ascii")}
api_endpoint = "https://api.devnet.solana.com/"
Client(api_endpoint).request_airdrop(account.public_key, int(1e10))
print(Client(api_endpoint).get_account_info(account.public_key))
api = metaplex_api.MetaplexAPI(cfg)

result = api.api_deploy(api_endpoint, "A"*32, "A"*10)
print(result)`

@gweinz
Copy link
Author

gweinz commented Nov 4, 2021

@crypt0miester any help would be great

@crypt0miester
Copy link
Contributor

crypt0miester commented Nov 5, 2021

try changing secret_key to seed in account keypair.

sorry I am on mobile. @gweinz

@crypt0miester
Copy link
Contributor

checkout the latest pr readme btw. try the code from there.

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

2 participants