File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pub enum LocalOrAws {
69
69
pub enum SignerError {
70
70
/// Error during [`AwsSigner`] instantiation
71
71
#[ error( "failed to connect AWS signer: {0}" ) ]
72
- AwsSigner ( #[ from] AwsSignerError ) ,
72
+ AwsSigner ( #[ from] Box < AwsSignerError > ) ,
73
73
/// Error loading the private key
74
74
#[ error( "failed to load private key: {0}" ) ]
75
75
Wallet ( #[ from] LocalSignerError ) ,
@@ -78,6 +78,12 @@ pub enum SignerError {
78
78
Hex ( #[ from] alloy:: hex:: FromHexError ) ,
79
79
}
80
80
81
+ impl From < AwsSignerError > for SignerError {
82
+ fn from ( err : AwsSignerError ) -> Self {
83
+ SignerError :: AwsSigner ( Box :: new ( err) )
84
+ }
85
+ }
86
+
81
87
impl LocalOrAws {
82
88
/// Load a privkey or AWS signer from environment variables.
83
89
pub async fn load ( key : & str , chain_id : Option < u64 > ) -> Result < Self , SignerError > {
You can’t perform that action at this time.
0 commit comments