I expected the contract to deploy, because I'm submitting the contract to a test network, not a public network.
What did you see instead?
error: the deployed smart contract out/contract.optimized.wasm was built with Soroban Rust SDK v20.0.0-rc2#0992413f9b05e5bfb1f872bce99e89d9129b2e61, a release candidate version not intended for use with the Stellar Public Network. To deploy anyway, use --ignore-checks
Discussion
The error message is confusing because it explicitly says it won't let me deploy to the Stellar Public Network, which is a specific network. However, it appears to display message for any network I'm connected to, including a local or test network.
Either the error message shouldn't specify the Stellar Public Network, or the error message should only be displayed for when the Network Passphrase is configured to be Public Global Stellar Network ; September 2015. The latter would be my preference because blocking folks from deploying release candidates to a local or test network doesn't seem like it would be of significant benefit.
What version are you using?
What did you do?
What did you expect to see?
I expected the contract to deploy, because I'm submitting the contract to a test network, not a public network.
What did you see instead?
Discussion
The error message is confusing because it explicitly says it won't let me deploy to the Stellar Public Network, which is a specific network. However, it appears to display message for any network I'm connected to, including a local or test network.
Looking at the code it looks like it displays this error message for any network: https://github.com/stellar/soroban-tools/blob/c68d03cd8f0588263e9a47b93ed8b2dc28d32f2f/cmd/soroban-cli/src/commands/contract/install.rs#L77-L85
Which was introduced in:
Either the error message shouldn't specify the Stellar Public Network, or the error message should only be displayed for when the Network Passphrase is configured to be
Public Global Stellar Network ; September 2015
. The latter would be my preference because blocking folks from deploying release candidates to a local or test network doesn't seem like it would be of significant benefit.