Skip to content

Commit cc17850

Browse files
committed
Remove undocumented ledger positional shorthand.
1 parent 1771977 commit cc17850

20 files changed

Lines changed: 55 additions & 95 deletions

File tree

FULL_HELP_DOCS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ Fund an identity on a test network
11731173

11741174
###### **Arguments:**
11751175

1176-
- `<NAME>` — Name of identity to lookup, default test identity used if not provided
1176+
- `<NAME>` — Name of identity to lookup. Required unless `--ledger` is provided
11771177

11781178
###### **Options:**
11791179

cmd/crates/soroban-test/tests/it/integration/ledger/entry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ fn claimable_balance_tx_env(sender: &str, destination: &str) -> TransactionEnvel
605605

606606
let source: UnresolvedMuxedAccount = sender.parse().unwrap();
607607
let resolved_source = source
608-
.resolve_muxed_account_sync(&locator::Args::default(), None)
608+
.resolve_muxed_account(&locator::Args::default(), None)
609609
.unwrap();
610610

611611
xdr::Transaction::new_tx(resolved_source, 1000, 1, create_op).into()
@@ -642,7 +642,7 @@ fn liquidity_pool_tx_env(
642642

643643
let source: UnresolvedMuxedAccount = test_account_address.parse().unwrap();
644644
let resolved_source = source
645-
.resolve_muxed_account_sync(&locator::Args::default(), None)
645+
.resolve_muxed_account(&locator::Args::default(), None)
646646
.unwrap();
647647

648648
let tx = xdr::Transaction::new_tx(resolved_source, 1000, 1, op).into();

cmd/soroban-cli/src/commands/contract/deploy/asset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl Cmd {
147147
.verify_network_passphrase(Some(&network.network_passphrase))
148148
.await?;
149149

150-
let source_account = config.source_account().await?;
150+
let source_account = config.source_account()?;
151151

152152
// Get the account sequence number
153153
// TODO: use symbols for the method names (both here and in serve)

cmd/soroban-cli/src/commands/contract/deploy/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl Cmd {
352352
};
353353

354354
let client = network.rpc_client()?;
355-
let MuxedAccount::Ed25519(bytes) = config.source_account().await? else {
355+
let MuxedAccount::Ed25519(bytes) = config.source_account()? else {
356356
return Err(Error::OnlyEd25519AccountsAllowed);
357357
};
358358
let source_account = AccountId(PublicKey::PublicKeyTypeEd25519(bytes));

cmd/soroban-cli/src/commands/contract/extend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl Cmd {
196196
tracing::trace!(?network);
197197
let keys = self.key.parse_keys(&config.locator, &network)?;
198198
let client = network.rpc_client()?;
199-
let source_account = config.source_account().await?;
199+
let source_account = config.source_account()?;
200200
let extend_to = self.ledgers_to_extend(&client).await?;
201201

202202
// Get the account sequence number

cmd/soroban-cli/src/commands/contract/id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ pub enum Error {
1818
}
1919

2020
impl Cmd {
21-
pub async fn run(&self) -> Result<(), Error> {
21+
pub fn run(&self) -> Result<(), Error> {
2222
match &self {
2323
Cmd::Asset(asset) => asset.run()?,
24-
Cmd::Wasm(wasm) => wasm.run().await?,
24+
Cmd::Wasm(wasm) => wasm.run()?,
2525
}
2626
Ok(())
2727
}

cmd/soroban-cli/src/commands/contract/id/wasm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ pub enum Error {
2929
OnlyEd25519AccountsAllowed,
3030
}
3131
impl Cmd {
32-
pub async fn run(&self) -> Result<(), Error> {
32+
pub fn run(&self) -> Result<(), Error> {
3333
let salt: [u8; 32] = soroban_spec_tools::utils::padded_hex_from_str(&self.salt, 32)
3434
.map_err(|_| Error::CannotParseSalt(self.salt.clone()))?
3535
.try_into()
3636
.map_err(|_| Error::CannotParseSalt(self.salt.clone()))?;
37-
let source_account = match self.config.source_account().await? {
37+
let source_account = match self.config.source_account()? {
3838
xdr::MuxedAccount::Ed25519(uint256) => stellar_strkey::ed25519::PublicKey(uint256.0),
3939
xdr::MuxedAccount::MuxedEd25519(_) => return Err(Error::OnlyEd25519AccountsAllowed),
4040
};

cmd/soroban-cli/src/commands/contract/invoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl Cmd {
316316
.await?;
317317

318318
client
319-
.get_account(&config.source_account().await?.to_string())
319+
.get_account(&config.source_account()?.to_string())
320320
.await?
321321
} else {
322322
if should_send == ShouldSend::DefaultNo {

cmd/soroban-cli/src/commands/contract/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl Cmd {
169169
Cmd::Extend(extend) => extend.run(global_args).await?,
170170
Cmd::Alias(alias) => alias.run(global_args)?,
171171
Cmd::Deploy(deploy) => deploy.run(global_args).await?,
172-
Cmd::Id(id) => id.run().await?,
172+
Cmd::Id(id) => id.run()?,
173173
Cmd::Info(info) => info.run(global_args).await?,
174174
Cmd::Init(init) => init.run(global_args)?,
175175
Cmd::Inspect(inspect) => {

cmd/soroban-cli/src/commands/contract/restore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl Cmd {
165165
tracing::trace!(?network);
166166
let entry_keys = self.key.parse_keys(&config.locator, &network)?;
167167
let client = network.rpc_client()?;
168-
let source_account = config.source_account().await?;
168+
let source_account = config.source_account()?;
169169

170170
// Get the account sequence number
171171
let account_details = client

0 commit comments

Comments
 (0)