Skip to content

Commit

Permalink
Fix emulator it test
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Jan 29, 2025
1 parent 72c8b26 commit 6563d0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/tests/it/emulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn test_signer(ledger_device_model: &str, hd_path: u32) {

let verifying_key = ed25519_dalek::VerifyingKey::from_bytes(&key.0).unwrap();
let body: OperationBody =
(&soroban_cli::commands::tx::new::bump_sequence::Args { bump_to: 100 }).try_into();
(&soroban_cli::commands::tx::new::bump_sequence::Args { bump_to: 100 }).into();
let operation = xdr::Operation {
body,
source_account: None,
Expand Down
9 changes: 9 additions & 0 deletions cmd/soroban-cli/src/commands/tx/new/bump_sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ pub struct Args {
pub bump_to: i64,
}

impl From<&Args> for xdr::OperationBody {
fn from(args: &Args) -> Self {
xdr::OperationBody::BumpSequence(xdr::BumpSequenceOp{
bump_to: args.bump_to.into(),
})
}
}


impl From<&Cmd> for xdr::OperationBody {
fn from(cmd: &Cmd) -> Self {
xdr::OperationBody::BumpSequence(xdr::BumpSequenceOp {
Expand Down

0 comments on commit 6563d0c

Please sign in to comment.