Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Oct 2, 2024
1 parent 174b5fc commit d004a6b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions crates/astria-cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use astria_core::{
primitive::v1::Address,
protocol::transaction::v1alpha1::{
Action,
TransactionParams,
UnsignedTransaction,
},
};
Expand Down Expand Up @@ -36,7 +35,7 @@ pub(crate) async fn submit_transaction(
let sequencer_key = SigningKey::from(private_key_bytes);

let from_address = Address::builder()
.array(sequencer_key.verification_key().address_bytes())
.array(*sequencer_key.verification_key().address_bytes())
.prefix(prefix)
.try_build()
.wrap_err("failed constructing a valid from address from the provided prefix")?;
Expand All @@ -47,14 +46,13 @@ pub(crate) async fn submit_transaction(
.await
.wrap_err("failed to get nonce")?;

let tx = UnsignedTransaction {
params: TransactionParams::builder()
.nonce(nonce_res.nonce)
.chain_id(chain_id)
.build(),
actions: vec![action],
}
.into_signed(&sequencer_key);
let tx = UnsignedTransaction::builder()
.nonce(nonce_res.nonce)
.chain_id(chain_id)
.actions(vec![action])
.try_build()
.wrap_err("failed to construct a transaction")?
.into_signed(&sequencer_key);
let res = sequencer_client
.submit_transaction_sync(tx)
.await
Expand Down

0 comments on commit d004a6b

Please sign in to comment.