Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy subcommand to use create_contract_from_source() #167

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Sep 30, 2022

What

Update deploy subcommand so that when it's used against an RPC server uses create_contract_from_source() instead of create_contract_from_ed25519()

Also, print the contract ID once created.

I used this CPP test as a reference: https://github.com/stellar/stellar-core/blob/2dccaae1ec9db8e82580bc5e7b84d404d1836f3c/src/transactions/test/InvokeHostFunctionTests.cpp#L135

Why

#152

Known limitations

I haven't really been able to test this end-to-end against an RPC server because soroban-cli serve still only seems to support HostFunction::InvokeContract

src/deploy.rs Outdated Show resolved Hide resolved
@2opremio 2opremio enabled auto-merge (squash) September 30, 2022 17:11
@2opremio 2opremio merged commit 3ea3a95 into stellar:main Sep 30, 2022
@2opremio 2opremio deleted the deploy-to-contract-from-source branch September 30, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants