@@ -434,39 +434,35 @@ mod test {
434
434
payload : byron_address. payload . to_vec ( ) ,
435
435
} ) ) ,
436
436
437
- addresses:: Address :: Shelley ( shelley_address) => {
438
- Ok ( Address :: Shelley ( ShelleyAddress {
439
- network : map_network ( shelley_address. network ( ) ) ?,
437
+ addresses:: Address :: Shelley ( shelley_address) => Ok ( Address :: Shelley ( ShelleyAddress {
438
+ network : map_network ( shelley_address. network ( ) ) ?,
440
439
441
- payment : match shelley_address. payment ( ) {
442
- addresses:: ShelleyPaymentPart :: Key ( hash) => {
443
- ShelleyAddressPaymentPart :: PaymentKeyHash ( hash. to_vec ( ) )
444
- }
445
- addresses:: ShelleyPaymentPart :: Script ( hash) => {
446
- ShelleyAddressPaymentPart :: ScriptHash ( hash. to_vec ( ) )
447
- }
448
- } ,
440
+ payment : match shelley_address. payment ( ) {
441
+ addresses:: ShelleyPaymentPart :: Key ( hash) => {
442
+ ShelleyAddressPaymentPart :: PaymentKeyHash ( hash. to_vec ( ) )
443
+ }
444
+ addresses:: ShelleyPaymentPart :: Script ( hash) => {
445
+ ShelleyAddressPaymentPart :: ScriptHash ( hash. to_vec ( ) )
446
+ }
447
+ } ,
449
448
450
- delegation : match shelley_address. delegation ( ) {
451
- addresses:: ShelleyDelegationPart :: Null => {
452
- ShelleyAddressDelegationPart :: None
453
- }
454
- addresses:: ShelleyDelegationPart :: Key ( hash) => {
455
- ShelleyAddressDelegationPart :: StakeKeyHash ( hash. to_vec ( ) )
456
- }
457
- addresses:: ShelleyDelegationPart :: Script ( hash) => {
458
- ShelleyAddressDelegationPart :: ScriptHash ( hash. to_vec ( ) )
459
- }
460
- addresses:: ShelleyDelegationPart :: Pointer ( pointer) => {
461
- ShelleyAddressDelegationPart :: Pointer ( ShelleyAddressPointer {
462
- slot : pointer. slot ( ) ,
463
- tx_index : pointer. tx_idx ( ) ,
464
- cert_index : pointer. cert_idx ( ) ,
465
- } )
466
- }
467
- } ,
468
- } ) )
469
- }
449
+ delegation : match shelley_address. delegation ( ) {
450
+ addresses:: ShelleyDelegationPart :: Null => ShelleyAddressDelegationPart :: None ,
451
+ addresses:: ShelleyDelegationPart :: Key ( hash) => {
452
+ ShelleyAddressDelegationPart :: StakeKeyHash ( hash. to_vec ( ) )
453
+ }
454
+ addresses:: ShelleyDelegationPart :: Script ( hash) => {
455
+ ShelleyAddressDelegationPart :: ScriptHash ( hash. to_vec ( ) )
456
+ }
457
+ addresses:: ShelleyDelegationPart :: Pointer ( pointer) => {
458
+ ShelleyAddressDelegationPart :: Pointer ( ShelleyAddressPointer {
459
+ slot : pointer. slot ( ) ,
460
+ tx_index : pointer. tx_idx ( ) ,
461
+ cert_index : pointer. cert_idx ( ) ,
462
+ } )
463
+ }
464
+ } ,
465
+ } ) ) ,
470
466
471
467
addresses:: Address :: Stake ( stake_address) => Ok ( Address :: Stake ( StakeAddress {
472
468
network : map_network ( stake_address. network ( ) ) ?,
0 commit comments