File tree 4 files changed +9
-5
lines changed 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ impl Binary {
76
76
}
77
77
78
78
pub fn to_hex ( & self ) -> String {
79
- hex:: encode ( self . 0 . clone ( ) )
79
+ hex:: encode ( & self . 0 )
80
80
}
81
81
}
82
82
Original file line number Diff line number Diff line change @@ -1467,7 +1467,10 @@ mod tests {
1467
1467
} ,
1468
1468
transaction: Some ( TransactionInfo :: new(
1469
1469
3 ,
1470
- Binary :: from_hex( "E5469DACEC17CEF8A260FD37675ED87E7FB6A2B5AD95193C51308006C7E494B3" ) . unwrap( ) ,
1470
+ Binary :: from_hex(
1471
+ "E5469DACEC17CEF8A260FD37675ED87E7FB6A2B5AD95193C51308006C7E494B3"
1472
+ )
1473
+ . unwrap( ) ,
1471
1474
) ) ,
1472
1475
contract: ContractInfo {
1473
1476
address: Addr :: unchecked( MOCK_CONTRACT_ADDR )
Original file line number Diff line number Diff line change 1
1
/// Implements a hidden constructor for non-exhaustive structures that need
2
2
/// to be built in libraries like cw-multi-test.
3
3
macro_rules! impl_hidden_constructor {
4
- ( $response : ty, $( $field: ident : $t: ty) ,* ) => {
5
- impl $response {
4
+ ( $type : ty, $( $field: ident : $t: ty) ,* ) => {
5
+ impl $type {
6
6
/// Constructor for testing frameworks such as cw-multi-test.
7
7
/// This is required because the type is #[non_exhaustive].
8
8
/// As a contract developer you should not need this constructor since
Original file line number Diff line number Diff line change @@ -282,7 +282,8 @@ pub fn mock_env() -> Env {
282
282
} ,
283
283
transaction : Some ( TransactionInfo :: new (
284
284
3 ,
285
- Binary :: from_hex ( "E5469DACEC17CEF8A260FD37675ED87E7FB6A2B5AD95193C51308006C7E494B3" ) . unwrap ( ) ,
285
+ Binary :: from_hex ( "E5469DACEC17CEF8A260FD37675ED87E7FB6A2B5AD95193C51308006C7E494B3" )
286
+ . unwrap ( ) ,
286
287
) ) ,
287
288
contract : ContractInfo {
288
289
address : Addr :: unchecked ( contract_addr) ,
You can’t perform that action at this time.
0 commit comments