Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ethcontract/src/transaction/kms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,23 @@ use web3::{
use crate::errors::ExecutionError;

/// An AWS KMS account abstraction.
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct Account {
client: Client,
key_id: String,
address: Address,
}

impl std::fmt::Debug for Account {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Account")
.field("key_id", &self.key_id)
.field("address", &self.address)
// Skip the client field as it contains too verbose output
.finish()
}
}

impl Account {
/// Creates a new KMS account.
pub async fn new(config: Config, key_id: &str) -> Result<Self, Error> {
Expand Down
Loading