Skip to content

Commit

Permalink
fix async trait usage
Browse files Browse the repository at this point in the history
  • Loading branch information
so-kkroy22 committed Oct 17, 2024
1 parent b4c40f8 commit af12df5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/aptos/src/account/multisig_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ impl CliCommand<CreateSummary> for Create {
}
}

#[async_trait]
impl SupraCommand for Create {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = aptos_stdlib::multisig_account_create_with_owners(
Expand Down Expand Up @@ -174,6 +175,7 @@ impl CliCommand<TransactionSummary> for CreateTransaction {
}
}

#[async_trait]
impl SupraCommand for CreateTransaction {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let multisig_transaction_payload_bytes =
Expand Down Expand Up @@ -308,6 +310,7 @@ impl CliCommand<TransactionSummary> for Approve {
}
}

#[async_trait]
impl SupraCommand for Approve {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = aptos_stdlib::multisig_account_approve_transaction(
Expand Down Expand Up @@ -359,6 +362,7 @@ impl CliCommand<TransactionSummary> for Reject {
}
}

#[async_trait]
impl SupraCommand for Reject {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = aptos_stdlib::multisig_account_reject_transaction(
Expand Down Expand Up @@ -403,6 +407,7 @@ impl CliCommand<TransactionSummary> for Execute {
}
}

#[async_trait]
impl SupraCommand for Execute {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = TransactionPayload::Multisig(Multisig {
Expand Down Expand Up @@ -446,6 +451,7 @@ impl CliCommand<TransactionSummary> for ExecuteWithPayload {
}
}

#[async_trait]
impl SupraCommand for ExecuteWithPayload {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = TransactionPayload::Multisig(Multisig {
Expand Down Expand Up @@ -498,6 +504,7 @@ impl CliCommand<TransactionSummary> for ExecuteReject {
}
}

#[async_trait]
impl SupraCommand for ExecuteReject {
async fn supra_command_arguments(self) -> anyhow::Result<SupraCommandArguments> {
let payload = aptos_stdlib::multisig_account_execute_rejected_transaction(
Expand Down

0 comments on commit af12df5

Please sign in to comment.