Skip to content

Commit aa6cde5

Browse files
pass version in deploy
Co-authored-by: Willem Wyndham <willem@ahalabs.dev>
1 parent 59ad7dd commit aa6cde5

File tree

1 file changed

+1
-1
lines changed
  • crates/stellar-registry-cli/src/commands

1 file changed

+1
-1
lines changed

crates/stellar-registry-cli/src/commands/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Cmd {
167167
function_name: "deploy".try_into().unwrap(),
168168
args: [
169169
ScVal::String(ScString(self.wasm_name.clone().try_into().unwrap())),
170-
ScVal::Void, // TODO should be a way to pass version
170+
self.version.clone().map(|s|ScVal::String(ScString(s.try_into().unwrap()))).unwrap_or(ScVal::Void),
171171
ScVal::String(ScString(self.contract_name.clone().try_into().unwrap())),
172172
ScVal::Address(xdr::ScAddress::Account(AccountId(
173173
xdr::PublicKey::PublicKeyTypeEd25519(Uint256(key.verifying_key().to_bytes())),

0 commit comments

Comments
 (0)