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 {
6969pub enum SignerError {
7070 /// Error during [`AwsSigner`] instantiation
7171 #[ error( "failed to connect AWS signer: {0}" ) ]
72- AwsSigner ( #[ from] AwsSignerError ) ,
72+ AwsSigner ( #[ from] Box < AwsSignerError > ) ,
7373 /// Error loading the private key
7474 #[ error( "failed to load private key: {0}" ) ]
7575 Wallet ( #[ from] LocalSignerError ) ,
@@ -78,6 +78,12 @@ pub enum SignerError {
7878 Hex ( #[ from] alloy:: hex:: FromHexError ) ,
7979}
8080
81+ impl From < AwsSignerError > for SignerError {
82+ fn from ( err : AwsSignerError ) -> Self {
83+ SignerError :: AwsSigner ( Box :: new ( err) )
84+ }
85+ }
86+
8187impl LocalOrAws {
8288 /// Load a privkey or AWS signer from environment variables.
8389 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