soroban-cli
soroban-cli copied to clipboard
`stellar contract invoke` warning about overwriting ID is confusing
What version are you using?
22.6.0
What did you do?
Deployed a contract using an --alias ALIAS value that I had previously used, so I was telling the CLI to record a new deployment against an existing alias.
$ stellar contract deploy --wasm contract.wasm --alias mycontract
ℹ️ Simulating install transaction…
ℹ️ Signing transaction: bd41da47e3904af319f668666a3d018d8b6ca4e43711acd25be590bc8c3bab16
🌎 Submitting install transaction…
ℹ️ Using wasm hash 1248450d372ef7f6b229e751e74a722710b55adca7b1518d2dd4ea070b80e1b8
ℹ️ Simulating deploy transaction…
ℹ️ Transaction hash is 6afe3f0e783782e17209786bde7ae710bbb7dd4b53e9750a25b420db6efa8e11
🔗 https://stellar.expert/explorer/testnet/tx/6afe3f0e783782e17209786bde7ae710bbb7dd4b53e9750a25b420db6efa8e11
ℹ️ Signing transaction: 6afe3f0e783782e17209786bde7ae710bbb7dd4b53e9750a25b420db6efa8e11
🌎 Submitting deploy transaction…
🔗 https://stellar.expert/explorer/testnet/contract/CD2CKSMN2AK4BWJHGO3D7ZHIPYH7RWCA6FCXHA6O44DCLGFL7Y5OY6XP
✅ Deployed!
⚠️ Overwriting existing contract id: CDJQFFRSW46EMFNYGPW3SSRN2E3ZOMGKOJGGJGHIWBYAMEKSEQ44MVV5
CD2CKSMN2AK4BWJHGO3D7ZHIPYH7RWCA6FCXHA6O44DCLGFL7Y5OY6XP
What did you expect to see?
A message telling me that I was overwriting the alias.
✅ Deployed!
⚠️ Overwriting existing alias "mycontract" that currently links to contract ID: CDJQFFRSW46EMFNYGPW3SSRN2E3ZOMGKOJGGJGHIWBYAMEKSEQ44MVV5
CD2CKSMN2AK4BWJHGO3D7ZHIPYH7RWCA6FCXHA6O44DCLGFL7Y5OY6XP
What did you see instead?
A message telling me that I was overwriting the contract.
✅ Deployed!
⚠️ Overwriting existing contract id: CDJQFFRSW46EMFNYGPW3SSRN2E3ZOMGKOJGGJGHIWBYAMEKSEQ44MVV5
CD2CKSMN2AK4BWJHGO3D7ZHIPYH7RWCA6FCXHA6O44DCLGFL7Y5OY6XP