File tree 2 files changed +7
-6
lines changed
ibc-apps/ics721-nft-transfer/types/src
ibc-core/ics02-client/types/src
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ pub enum NftTransferError {
16
16
ContextError ( ContextError ) ,
17
17
/// decoding error: `{0}`
18
18
Decoding ( DecodingError ) ,
19
- /// identifier error: `{0}`
20
- Identifier ( IdentifierError ) ,
21
19
/// invalid trace: `{0}`
22
20
InvalidTrace ( String ) ,
23
21
/// invalid URI error: `{0}`
@@ -58,6 +56,12 @@ impl std::error::Error for NftTransferError {
58
56
}
59
57
}
60
58
59
+ impl From < IdentifierError > for NftTransferError {
60
+ fn from ( e : IdentifierError ) -> Self {
61
+ Self :: Decoding ( DecodingError :: Identifier ( e) )
62
+ }
63
+ }
64
+
61
65
impl From < Infallible > for NftTransferError {
62
66
fn from ( e : Infallible ) -> Self {
63
67
match e { }
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ pub enum ClientError {
20
20
Upgrade ( UpgradeClientError ) ,
21
21
/// decoding error: `{0}`
22
22
Decoding ( DecodingError ) ,
23
- /// identifier error: `{0}`
24
- Identifier ( IdentifierError ) ,
25
23
/// invalid trust threshold: `{numerator}`/`{denominator}`
26
24
InvalidTrustThreshold { numerator : u64 , denominator : u64 } ,
27
25
/// invalid client state type: `{0}`
@@ -110,7 +108,7 @@ impl From<DecodingError> for ClientError {
110
108
111
109
impl From < IdentifierError > for ClientError {
112
110
fn from ( e : IdentifierError ) -> Self {
113
- Self :: Identifier ( e)
111
+ Self :: Decoding ( DecodingError :: Identifier ( e) )
114
112
}
115
113
}
116
114
@@ -119,7 +117,6 @@ impl std::error::Error for ClientError {
119
117
fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
120
118
match & self {
121
119
Self :: FailedICS23Verification ( e) => Some ( e) ,
122
- Self :: Identifier ( e) => Some ( e) ,
123
120
Self :: Decoding ( e) => Some ( e) ,
124
121
_ => None ,
125
122
}
You can’t perform that action at this time.
0 commit comments